joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b9c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push esi
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
push edi
mov edi, ecx
je 0x46ba90
push 0x44
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00472c50
mov eax, dword [edi]
or dword [esp + 0x50], 0x101
add esp, 0xc
mov dword [esp + 0x50], esi
mov ecx, 7
mov esi, str.ipconfig__all
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
push 0
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x46ba7a
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00472710
add esp, 0x78
ret 4
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.00472710
add esp, 0x78
ret 4

Function at 0x46bab0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4965a6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push esi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov eax, dword [esp + 0x434]
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.0040f5f0
mov dword [esp + 0x42c], 0
mov eax, dword [esi]
test eax, eax
je 0x46bb2a
cmp eax, 0xffffffff
je 0x46bb2a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46bc06
mov dword [esi], 0xffffffff
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x28]
push edx
push eax
call ebp
test eax, eax
je 0x46bbb5
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46bbb5
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043b790
mov esi, eax
mov ecx, esi
mov byte [esp + 0x42c], 1
call fcn.0040f780
push eax
mov ecx, esi
call fcn.0041cae0
push eax
lea ecx, [esp + 0x14]
call fcn.0043b940
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 0
call fcn.004023a0
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x28]
push eax
push ecx
call ebp
test eax, eax
jne 0x46bb50
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0046bc20
push esi
call fcn.0046c530
push esi
call fcn.0046c970
lea ecx, [esp + 0xc]
call fcn.004023a0
mov eax, 1
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00472710
add esp, 0x424
ret 4
lea ecx, [esp + 0xc]
call fcn.004023a0
xor eax, eax
jmp 0x46bbde
Function at 0x46fae0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x46fae7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0046faf0
Function at 0x46faf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x46fb22
lea esp, [esp]
test cl, 3
je 0x46fb22
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x49d148]
add ecx, 1
sub esi, 1
jne 0x46fb00
cmp esi, 0x20
push ebx
push edi
jb 0x46fd0c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x49d548]
xor edx, dword [ebx*4 + 0x49d948]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x49d148]
add ecx, 4
xor edx, dword [eax*4 + 0x49dd48]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x49d548]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x49d948]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x49d148]
add ecx, 4
xor eax, dword [edx*4 + 0x49dd48]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x49d548]
xor edx, dword [ebx*4 + 0x49d948]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x49d148]
xor edx, dword [eax*4 + 0x49dd48]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x49d548]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x49d948]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x49d148]
xor eax, dword [edx*4 + 0x49dd48]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x49d548]
xor edx, dword [ebx*4 + 0x49d948]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x49d148]
xor edx, dword [eax*4 + 0x49dd48]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x49d548]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x49d948]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x49d148]
and edx, 0xff
xor eax, dword [edx*4 + 0x49dd48]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x49d548]
xor edx, dword [ebx*4 + 0x49d948]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x49d148]
add ecx, 4
xor edx, dword [eax*4 + 0x49dd48]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x49d548]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x49d948]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x49d148]
and edx, 0xff
xor eax, dword [edx*4 + 0x49dd48]
sub edi, 1
jne 0x46fb32
cmp esi, 4
jb 0x46fd59
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x49d548]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x49d948]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x49d148]
and eax, 0xff
xor edi, dword [eax*4 + 0x49dd48]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x46fd16
test esi, esi
pop edi
pop ebx
je 0x46fd7d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x49d148]
add ecx, 1
sub esi, 1
jne 0x46fd60
not eax
pop esi
ret
Function at 0x470d02
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b62b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00470c41
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00472c50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x470d51
cmp dword [ebp - 0x1c], 5
jb 0x470d69
jmp 0x470d65
cmp dword [ebp - 0x10], 1
jne 0x470d69
cmp dword [ebp - 0x1c], 4
ja 0x470d65
jne 0x470d69
cmp dword [ebp - 0x18], 0
jbe 0x470d69
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x49a71c
call fcn.00403760
test eax, eax
jge 0x470d8a
mov byte [0x4b9e80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00472710
add ebp, 0x78
leave
ret

Function at 0x472710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b62b0]
jne 0x47271a
repz ret
jmp fcn.0047e243
Function at 0x4776e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x477722
cmp dword [ebp + 0x14], edi
je 0x477722
cmp ecx, edi
jne 0x477729
call fcn.0047a9a4
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00475241
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x47773d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47775e
cmp ebx, 0xffffffff
je 0x47774d
push ebx
push edi
push ecx
call fcn.00472c50
add esp, 0xc
cmp esi, edi
je 0x47770a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x47770a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47777a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x477781
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x477872
test word [esi + 0xc], 0x10c
je 0x4777d5
mov eax, dword [esi + 4]
test eax, eax
je 0x4777d5
jl 0x4778d3
cmp ebx, eax
mov edi, ebx
jb 0x4777a6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47787a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004723d8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x47786a
cmp ebx, dword [ebp - 0xc]
jb 0x477842
cmp dword [ebp - 0xc], 0
je 0x4777ff
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4777f4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4777fb
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x47780a
mov eax, SysReAllocString
cmp ebx, eax
ja 0x47780a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4778a6
push eax
push dword [ebp - 8]
push esi
call fcn.004842a5
pop ecx
push eax
call fcn.00484ffe
add esp, 0xc
test eax, eax
je 0x4778e5
cmp eax, 0xffffffff
je 0x4778d3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47786a
push esi
call fcn.0048491d
cmp eax, 0xffffffff
pop ecx
je 0x4778d7
cmp dword [ebp - 4], 0
je 0x4778a6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x477789
mov eax, dword [ebp + 0x14]
jmp 0x477724
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x477891
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00472c50
add esp, 0xc
call fcn.0047a9a4
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47771a
cmp dword [ebp + 0xc], 0xffffffff
je 0x4778bc
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00472c50
add esp, 0xc
call fcn.0047a9a4
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47771a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x477724
or dword [esi + 0xc], 0x10
jmp 0x4778d7
Function at 0x477c25
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x477c52
call fcn.0047a9b7
mov dword [eax], esi
call fcn.0047a9a4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00475241
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x477c2e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x477c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047a9ca
pop ecx
call fcn.0047a9a4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x477ca8
test al, 1
je 0x477ca8
test byte [esp + 0xc], 2
je 0x477ca8
call fcn.0047a9b7
mov dword [eax], 5
call fcn.0047a9a4
mov dword [eax], 0xd
jmp 0x477c78
xor eax, eax
pop esi
ret

Function at 0x47e8d1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b6a90]
je 0x47e8ec
inc edi
cmp edi, 0x17
jb 0x47e8dd
cmp edi, 0x17
jae 0x47ea6c
push ebp
push 3
call fcn.0048d5d9
cmp eax, 1
pop ecx
je 0x47ea38
push 3
call fcn.0048d5d9
test eax, eax
pop ecx
jne 0x47e920
cmp dword [0x4b62a0], 1
je 0x47ea38
cmp ebx, 0xfc
je 0x47ea6b
push 0x49b928
mov ebx, 0x314
push ebx
mov ebp, 0x4b9660
push ebp
call fcn.0047ec0e
add esp, 0xc
test eax, eax
je 0x47e956
push esi
push esi
push esi
push esi
push esi
call fcn.00475145
add esp, 0x14
push 0x104
mov esi, 0x4b9679
push esi
push 0
mov byte [0x4b977d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47e99a
push 0x49b910
push 0x2fb
push esi
call fcn.0047ec0e
add esp, 0xc
test eax, eax
je 0x47e99a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00475145
add esp, 0x14
push esi
call fcn.00473860
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47e9df
push esi
call fcn.00473860
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b9974
push 0x49b90c
sub ecx, eax
push ecx
push eax
call fcn.00476e6b
add esp, 0x14
test eax, eax
je 0x47e9df
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00475145
add esp, 0x14
jmp 0x47e9e1
xor esi, esi
push 0x49b908
push ebx
push ebp
call fcn.00486a4e
add esp, 0xc
test eax, eax
je 0x47ea01
push esi
push esi
push esi
push esi
push esi
call fcn.00475145
add esp, 0x14
push dword [edi*8 + 0x4b6a94]
push ebx
push ebp
call fcn.00486a4e
add esp, 0xc
test eax, eax
je 0x47ea23
push esi
push esi
push esi
push esi
push esi
call fcn.00475145
add esp, 0x14
push 0x12010
push 0x49b8e0
push ebp
call fcn.0048d41c
add esp, 0xc
jmp 0x47ea6b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47ea6b
cmp ebp, 0xffffffff
je 0x47ea6b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b6a94]
push dword [esi]
call fcn.00473860
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48d41c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047c7f2
xor ebx, ebx
cmp dword [0x4b9e50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48d4f2
push 0x49cf24
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48d5d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49cf18
push edi
call esi
cmp eax, ebx
je 0x48d5d2
push eax
call fcn.0047c784
mov dword [esp], 0x49cf08
push edi
mov dword [0x4b9e50], eax
call esi
push eax
call fcn.0047c784
mov dword [esp], 0x49cef4
push edi
mov dword [0x4b9e54], eax
call esi
push eax
call fcn.0047c784
mov dword [0x4b9e58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047fd7e
test eax, eax
pop ecx
pop ecx
je 0x48d4c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475145
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48d4f2
push 0x49ced8
push edi
call esi
push eax
call fcn.0047c784
cmp eax, ebx
pop ecx
mov dword [0x4b9e60], eax
je 0x48d4f2
push 0x49cec0
push edi
call esi
push eax
call fcn.0047c784
pop ecx
mov dword [0x4b9e5c], eax
mov eax, dword [0x4b9e5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48d577
cmp dword [0x4b9e60], ecx
je 0x48d577
push eax
call fcn.0047c7fb
push dword [0x4b9e60]
mov esi, eax
call fcn.0047c7fb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48d577
cmp edi, ebx
je 0x48d577
call esi
cmp eax, ebx
je 0x48d544
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48d544
test byte [ebp - 0x18], 1
jne 0x48d577
lea eax, [ebp - 0x10]
push eax
call fcn.0047fdb5
test eax, eax
pop ecx
je 0x48d55f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475145
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48d56e
or dword [ebp + 0x10], 0x200000
jmp 0x48d5b2
or dword [ebp + 0x10], 0x40000
jmp 0x48d5b2
mov eax, dword [0x4b9e54]
cmp eax, dword [ebp - 8]
je 0x48d5b2
push eax
call fcn.0047c7fb
cmp eax, ebx
pop ecx
je 0x48d5b2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48d5b2
mov eax, dword [0x4b9e58]
cmp eax, dword [ebp - 8]
je 0x48d5b2
push eax
call fcn.0047c7fb
cmp eax, ebx
pop ecx
je 0x48d5b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b9e50]
call fcn.0047c7fb
cmp eax, ebx
pop ecx
je 0x48d5d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48d5d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102824f3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10291210], 0
mov byte [0x10291214], 0
mov dword [0x10291208], 0x17a8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x1029120c], 0
mov dword [ebp - 0x1c], eax
jmp 0x10282568
mov eax, dword [0x10291208]
add eax, 0x20cc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10291204], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x1029120c], 0
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1028259a
mov eax, dword [ebp - 0x1c]
mov dword [0x10291204], 0x1cfc
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1029120c]
add eax, 1
mov dword [0x1029120c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10282568
jmp 0x10282557
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x10291218], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10291204], 0x1994
mov edi, dword [0x10291210]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10291218], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x10291210], edx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x10291214], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov esi, dword [0x10291208]
add esi, 0xfffff0f5
mov dword [0x10291208], esi
mov cl, byte [0x10291214]
mov esi, dword [0x10291210]
mov byte [ebx + esi], cl
mov dword [0x10291204], 0x195b
mov esi, dword [0x1029120c]
add esi, 1
mov dword [0x1029120c], esi
cmp esi, 0x100
mov dword [ebp - 0x24], esi
jl 0x1028259a
jmp 0x1028253a
Function at 0x1028266f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x10291204]
mov dword [0x10291204], 0xf98
add edx, 0xffffeba2
mov dword [0x10291208], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x102827dc
lea eax, [ebp - 0x2c]
mov dword [0x10291204], 0x158a
mov dword [ebp - 0x13c], eax
call fcn.10283528
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.10282290
mov ecx, eax
mov dword [0x10291224], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x10282879
lea eax, [0x10285165]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x144]
add esi, 0x146663
mov edi, dword [ebp - 0x144]
add edi, 0xb4b3f
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], esi
call fcn.102824f3
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10283042
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x15c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x119600
mov edx, dword [ebp - 0x150]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2020
mov dword [0x10291204], 0x2343
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x34
mov edi, edx
add edi, esi
add edi, 0x30
mov esi, dword [edi]
imul edi, eax, 0x34
add edx, edi
add edx, 0x1c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x36c
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x102827dc
xor eax, eax
mov dword [0x10291204], 0x40d
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov cl, byte [eax + str._aM_]
mov dl, byte [eax + 0x10285157]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x160], eax
je 0x102826b5
jmp 0x10282847
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
imul esi, eax, 0x34
mov edi, edx
add edi, esi
add edi, 0x30
mov esi, dword [edi]
imul edi, eax, 0x34
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x34
add edx, ebx
add edx, 0x1c
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], edx
call fcn.102829ee
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x168]
add eax, ecx
mov edx, dword [ebp - 0x164]
add edx, 1
cmp edx, 0x36c
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
je 0x10282725
jmp 0x10282879
Function at 0x10282a6d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [0x10291204]
add ecx, 0xfffff1da
mov dword [0x10291204], ecx
mov dword [ebp - 0x10], eax
call fcn.1028212c
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10282abb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10291208], 0x1650
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10282bcf
jmp 0x10282b4a
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x38]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], eax
jb 0x10282b5c
jmp 0x10282bcf
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10282baa
jmp 0x10282b78
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edx
jmp 0x10282b1f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x4d]
cmp dl, 0
setne ch
mov dh, byte [ebp - 0x4e]
and dh, ch
and dh, cl
test dh, 1
mov dword [ebp - 0x44], eax
jne 0x10282b1f
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10282bb6
jmp 0x10282af6
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret