joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9013f61
Capabilities:
Check os version

Disassembly:
push 0x118
mov eax, 0x90a2736
call fcn.09004c60
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x124], edi
call fcn.0900373e
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov edx, esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.09015738
pop ecx
test al, al
jne 0x9013fbf
lea eax, [ebp - 0x4c]
push eax
call fcn.0906031b
pop ecx
test al, al
jne 0x9013fbf
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.090167a9
mov eax, esi
call fcn.09005591
ret
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x9014150
cmp dword [ebp - 0x110], 6
sbb al, al
inc al
je 0x9014150
push str.CDMP
lea ecx, [ebp - 0x4c]
call fcn.090168fc
test al, al
je 0x9014150
lea ecx, [ebp - 0x68]
call fcn.0900373e
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.09001f91
pop ecx
test al, al
je 0x901411d
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.09056076
mov esi, str..icc
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.09001f91
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x9014065
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.09001f91
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.090183d0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.09001f91
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x68]
call fcn.09001f91
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.09001f91
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x90140e1
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.090178a6
pop ecx
pop ecx
lea ecx, [ebp - 0x11c]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0901978b
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.09001f91
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x68]
jmp 0x9014141
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.0901978b
mov dword [ebp - 4], 2
jmp 0x901410e
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.09001f91
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.0905855e
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x68]
test al, al
je 0x901414b
mov esi, dword [ebp - 0x120]
call fcn.090167a9
jmp 0x9013fab
call fcn.090167a9
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.090178a6
pop ecx
pop ecx
mov esi, eax
jmp 0x9013fab
Function at 0x90422dc
Capabilities:
Get memory capacity

Disassembly:
push 0x28
mov eax, 0x90a0c3e
call fcn.09004c60
lea eax, [ebp - 0x34]
push eax
mov esi, ecx
mov dword [ebp - 0x34], 0x20
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
xor edi, edi
sub eax, dword [esi + 8]
sbb edi, dword [esi + 0xc]
js 0x904234b
jg 0x9042311
test eax, eax
jb 0x904234b
mov ecx, dword [esi + 4]
mov edx, ecx
xor ebx, ebx
imul edx, edx, 3
cmp edi, ebx
jg 0x904234b
jl 0x9042325
cmp eax, edx
ja 0x904234b
cmp ecx, eax
jae 0x904233f
and dword [ebp - 4], 0
sub eax, ecx
mov ecx, dword [esi]
push eax
call fcn.09001f91
jmp 0x904234b
jbe 0x904234b
sub ecx, eax
push ecx
mov ecx, dword [esi]
call fcn.09001f91
call fcn.09005591
ret

Function at 0x90423b0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov byte [ecx + 0x58], al
ret
Function at 0x90556d5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x90556dd
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x90556ec
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x90563e9
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x90a0dde
call fcn.0900621d
mov edi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push 0x208
sete al
push ebx
lea esi, [eax - 1]
lea eax, [ebp - 0x218]
and esi, 0xffffffef
push eax
add esi, 0x2b
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x905642e
or esi, 0x8000
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
je 0x9056447
xor al, al
jmp 0x9056497
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.09015b83
push dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
push str.Adobe
mov dword [ebp - 4], ebx
call fcn.0905636c
test al, al
je 0x905648a
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.09001f91
mov ecx, edi
call fcn.090556d5
mov bl, al
lea ecx, [ebp - 0x234]
call fcn.090167a9
mov al, bl
call fcn.0900804d
ret
Function at 0x906031b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x158
mov eax, 0x90a26eb
call fcn.0900621d
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x164], eax
xor ebx, ebx
lea eax, [ebp - 0x154]
push eax
mov edi, 0x20019
push edi
push ebx
push str.SOFTWARE
push 0x80000002
mov byte [ebp - 0x13d], bl
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x14c], ebx
call esi
test eax, eax
je 0x9060388
mov dword [ebp - 0x154], ebx
jmp 0x9060557
lea eax, [ebp - 0x148]
push eax
push edi
push ebx
push str.Adobe
push dword [ebp - 0x154]
call esi
test eax, eax
je 0x90603ad
mov dword [ebp - 0x148], ebx
jmp 0x9060557
lea eax, [ebp - 0x150]
push eax
push edi
push ebx
push str.Color
push dword [ebp - 0x148]
call esi
test eax, eax
je 0x90603d2
mov dword [ebp - 0x150], ebx
jmp 0x9060557
lea eax, [ebp - 0x144]
push eax
push edi
push ebx
push str.Monitor
push dword [ebp - 0x150]
call esi
test eax, eax
je 0x90603f7
mov dword [ebp - 0x144], ebx
jmp 0x9060557
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x144]
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9060452
cmp dword [ebp - 0x15c], 4
jne 0x9060452
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x160], eax
cmp eax, 0x3e7
ja 0x9060557
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c]
push str.Monitor_u
push 0xb
push eax
call fcn.09001f91
add esp, 0x10
lea eax, [ebp - 0x14c]
push eax
push edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x144]
call esi
test eax, eax
je 0x90604dc
mov dword [ebp - 0x14c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], ebx
je 0x90604a0
push dword [ebp - 0x144]
call esi
cmp dword [ebp - 0x150], ebx
je 0x90604b0
push dword [ebp - 0x150]
call esi
cmp dword [ebp - 0x148], ebx
je 0x90604c0
push dword [ebp - 0x148]
call esi
cmp dword [ebp - 0x154], ebx
je 0x90604d0
push dword [ebp - 0x154]
call esi
mov al, byte [ebp - 0x13d]
call fcn.0900804d
ret
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x14c]
mov dword [ebp - 0x158], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9060557
cmp dword [ebp - 0x15c], 1
jne 0x9060557
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0905592d
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], ebx
call fcn.09001f91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.090167a9
mov byte [ebp - 0x13d], 1
cmp dword [ebp - 0x14c], ebx
je 0x906048a
push dword [ebp - 0x14c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x9060490
Function at 0x9063086
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2ae1
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 4]
add eax, 0x78
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x13e8], edi
mov dword [ebp - 0x13e4], esi
call fcn.09001f91
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x906310a
mov eax, dword [esi + 4]
push 0
push 0x753
push 0xb71b
push eax
call fcn.09001f91
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.0900e991
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp - 0x13d8]
add dword [ebp - 0x13d4], 0x8000
add dword [ebp - 0x13d8], 2
cmp dword [ebp - 0x13d4], 0xc800c
mov word [ecx], ax
jb 0x906312e
and dword [ebp - 0x13d8], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
jmp 0x906317f
mov edi, dword [ebp - 0x13e8]
mov esi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13dc], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13dc]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x906319d
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x906319b
push 0
mov eax, 0x504c4142
push eax
push eax
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, esi
call fcn.09001f91
push 1
push 0x753
push dword [ebp - 0x13d8]
lea ecx, [ebp - 0x1408]
push dword [edi]
call fcn.09001f91
lea ecx, [ebp - 0x1408]
mov byte [ebp - 4], 1
call fcn.09005145
lea edi, [ebp - 0x13d0]
lea esi, [eax + 2]
mov dword [ebp - 0x13dc], 0x19
mov dword [ebp - 0x13d4], 0x19
mov eax, dword [edi]
mov ecx, dword [edi + 4]
shr eax, 0x10
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [esi - 2], al
movzx eax, cx
push eax
mov dword [ebp - 0x13f0], ecx
call fcn.09001f91
mov byte [esi - 1], al
movzx eax, word [ebp - 0x13ee]
push eax
call fcn.09001f91
mov byte [esi], al
pop ecx
add esi, 3
add edi, 8
dec dword [ebp - 0x13d4]
pop ecx
jne 0x906323a
dec dword [ebp - 0x13dc]
jne 0x9063230
lea ecx, [ebp - 0x1408]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13d8], 0x753
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13d8], 0xb71b
jb 0x9063173
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.09001f91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x906400a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2cd0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov eax, dword [edi + 4]
add eax, 0x78
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x13ec], esi
mov dword [ebp - 0x13e4], edi
call fcn.09001f91
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x906408e
mov eax, dword [edi + 4]
push 0
push 0x9c4
push 0xf424
push eax
call fcn.09001f91
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x13f0], edi
call fcn.0900e991
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop esi
div esi
add dword [ebp - 0x13d4], 0x8000
mov word [ecx], ax
add ecx, 2
cmp dword [ebp - 0x13d4], 0xc800c
jb 0x90640ac
and dword [ebp - 0x13dc], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
mov esi, 0x4000
jmp 0x90640f2
mov edi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13d8], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13d8]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x9064110
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x906410e
push 0
push 0x434d594b
push 0x50524742
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, edi
call fcn.09001f91
mov eax, dword [ebp - 0x13ec]
push 1
push 0x9c4
push dword [ebp - 0x13dc]
lea ecx, [ebp - 0x1404]
push dword [eax]
call fcn.09001f91
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 1
call fcn.09005145
lea ecx, [ebp - 0x13d0]
add eax, 2
mov dword [ebp - 0x13d8], 0x19
mov dword [ebp - 0x13d4], ecx
mov dword [ebp - 0x13e8], 0x19
mov ecx, dword [ebp - 0x13d4]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
movzx edx, di
imul edx, edx, 0xff
add edx, esi
shr edx, 0xf
mov byte [eax - 2], dl
shr edi, 0x10
mov edx, edi
imul edx, edx, 0xff
add dword [ebp - 0x13d4], 8
add edx, esi
shr edx, 0xf
mov byte [eax - 1], dl
movzx edx, cx
shr ecx, 0x10
imul edx, edx, 0xff
imul ecx, ecx, 0xff
add edx, esi
add ecx, esi
shr edx, 0xf
shr ecx, 0xf
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 4
dec dword [ebp - 0x13e8]
jne 0x90641bc
dec dword [ebp - 0x13d8]
mov ecx, dword [ebp - 0x13d4]
jne 0x90641ac
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13dc], 0x9c4
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13dc], 0xf424
jb 0x90640ec
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.09001f91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x90646d5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2cd0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov eax, dword [edi + 4]
add eax, 0x78
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x13ec], esi
mov dword [ebp - 0x13e4], edi
call fcn.09001f91
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x9064759
mov eax, dword [edi + 4]
push 0
push 0x9c4
push 0xf424
push eax
call fcn.09001f91
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x13f0], edi
call fcn.0900e991
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop esi
div esi
add dword [ebp - 0x13d4], 0x8000
mov word [ecx], ax
add ecx, 2
cmp dword [ebp - 0x13d4], 0xc800c
jb 0x9064777
and dword [ebp - 0x13dc], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
mov esi, 0x4000
jmp 0x90647bd
mov edi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13d8], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13d8]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x90647db
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x90647d9
push 0
push 0x434d594b
push 0x504c4142
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, edi
call fcn.09001f91
mov eax, dword [ebp - 0x13ec]
push 1
push 0x9c4
push dword [ebp - 0x13dc]
lea ecx, [ebp - 0x1404]
push dword [eax]
call fcn.09001f91
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 1
call fcn.09005145
lea ecx, [ebp - 0x13d0]
add eax, 2
mov dword [ebp - 0x13d8], 0x19
mov dword [ebp - 0x13d4], ecx
mov dword [ebp - 0x13e8], 0x19
mov ecx, dword [ebp - 0x13d4]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
movzx edx, di
imul edx, edx, 0xff
add edx, esi
shr edx, 0xf
mov byte [eax - 2], dl
shr edi, 0x10
mov edx, edi
imul edx, edx, 0xff
add dword [ebp - 0x13d4], 8
add edx, esi
shr edx, 0xf
mov byte [eax - 1], dl
movzx edx, cx
shr ecx, 0x10
imul edx, edx, 0xff
imul ecx, ecx, 0xff
add edx, esi
add ecx, esi
shr edx, 0xf
shr ecx, 0xf
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 4
dec dword [ebp - 0x13e8]
jne 0x9064887
dec dword [ebp - 0x13d8]
mov ecx, dword [ebp - 0x13d4]
jne 0x9064877
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13dc], 0x9c4
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13dc], 0xf424
jb 0x90647b7
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.09001f91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x9095fa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a3edd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb18
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb24], eax
call fcn.09001f91
add esp, 4
push eax
lea ecx, [ebp - 0xb20]
call fcn.09001f91
push 0
push 0
mov eax, dword [ebp - 0xb20]
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push eax
push esi
mov dword [ebp - 4], 0
call fcn.09008249
add esp, 0x3c
push eax
lea ecx, [ebp - 0xb1c]
call fcn.09001f91
mov byte [ebp - 4], 1
xor eax, eax
jmp 0x9096050
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x9096050
push 0
push 0x5058595a
push 0x67386b30
push pe_nt_image_headers32
lea ecx, [ebp - 0x918]
push ecx
mov ecx, dword [ebp - 0xb1c]
lea edx, [ebp - 0x118]
push edx
call fcn.09001f91
movzx edi, word [ebp - 0x914]
movzx esi, word [ebp - 0x11c]
cmp esi, edi
ja 0x90960a5
push 0x6250726f
call fcn.09001f91
sub esi, edi
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx*8 - 0x914]
cmp eax, edi
ja 0x90960c0
xor eax, eax
jmp 0x90960e9
movzx edx, word [ebp - 0x11c]
cmp eax, edx
jb 0x90960da
mov edx, 0x8000
mov word [ebp + ecx*2 - 0xb18], dx
jmp 0x90960f1
sub eax, edi
mov edx, esi
shr edx, 1
shl eax, 0xf
add eax, edx
xor edx, edx
div esi
mov word [ebp + ecx*2 - 0xb18], ax
inc ecx
cmp ecx, 0x100
jb 0x90960b0
lea ecx, [ebp - 0xb1c]
mov byte [ebp - 4], 0
call fcn.0900ec67
lea ecx, [ebp - 0xb20]
mov dword [ebp - 4], 0xffffffff
call fcn.09019001
mov esi, dword [ebp - 0xb24]
lea eax, [esi + 8]
push eax
push 0x260
mov dword [ebp - 0xb24], eax
call fcn.09001f91
add esp, 8
mov dword [ebp - 0xb20], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x909615b
push esi
mov ecx, eax
call fcn.09001f91
mov esi, eax
mov dword [ebp - 0xb1c], esi
jmp 0x909616b
mov dword [ebp - 0xb1c], 0
mov esi, dword [ebp - 0xb1c]
fld qword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
fmul qword [0x90b4990]
mov ecx, dword [eax]
fldz
mov dword [esi + 0x50], ecx
mov edx, dword [eax + 4]
fcomp st(1)
mov dword [esi + 0x54], edx
fnstsw ax
test ah, 0x41
jne 0x9096195
fsub qword [0x90aad88]
jmp 0x909619b
fadd qword [0x90aad88]
call fcn.0909e870
mov word [esi + 0x58], ax
mov eax, dword [ebp - 0xb1c]
lea edi, [esi + 0x5a]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40121d
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1714]
mov eax, 0x1794
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x1710], eax
mov eax, dword [ebp + 0x171c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1720]
xor edi, edi
cmp dword [ebp + 0x1728], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x68], ebx
jl 0x40132f
jg 0x401272
cmp dword [ebp + 0x1724], ebx
jbe 0x40132f
mov ecx, dword [ebp + 0x1724]
mov eax, dword [ebp + 0x1728]
sub ecx, edi
sbb eax, dword [ebp - 0x68]
js 0x401299
jg 0x40128f
cmp ecx, 0x1770
jbe 0x401299
mov ecx, 0x1770
mov dword [ebp - 0x7c], ebx
jmp 0x40129c
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401368
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x401368
cmp byte [ebp + 0x172c], bl
je 0x4012da
xor ecx, ecx
cmp eax, ebx
jbe 0x4012da
xor byte [ebp + ecx - 0x60], 0x88
inc ecx
cmp ecx, eax
jb 0x4012d0
xor esi, esi
cmp eax, ebx
jbe 0x401304
push ebx
lea ecx, [ebp - 0x70]
push ecx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x60]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401349
add esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
cmp esi, eax
jb 0x4012e0
add edi, eax
adc dword [ebp - 0x68], ebx
call fcn.00403d57
test al, al
jne 0x40132f
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp + 0x1728]
jl 0x401272
jg 0x40132f
cmp edi, dword [ebp + 0x1724]
jb 0x401272
xor eax, eax
mov ecx, dword [ebp + 0x1710]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414678
add ebp, 0x1714
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x64]
sub eax, esi
push eax
push str.WriteFile_failed__d__d
call fcn.0040ff0f
add esp, 0xc
push 2
pop eax
jmp 0x401331
push dword [ebp - 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x64]
push str.ReadFile_failed__d__d__I64d
call fcn.0040ff0f
xor eax, eax
add esp, 0x14
inc eax
jmp 0x401331