joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f51b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x41f597
push 9
call esi
test bl, al
je 0x41f597
push 0x11
call esi
test bl, al
jne 0x41f597
push 0x10
call esi
test bl, al
jne 0x41f597
push 0x12
call esi
test bl, al
jne 0x41f597
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41f597
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x41f597
xor eax, eax
jmp 0x41f619
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41f5c0
push 0x11
call esi
test bl, al
jne 0x41f5b8
push 0x10
call esi
test bl, al
jne 0x41f5b8
push 0x12
call esi
test bl, al
je 0x41f5c0
push 1
push ebp
call fcn.0041f4d4
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x41f5d6
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41f616
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41f616
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41f616
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41f616
dec esi
push esi
push dword [0x4a8ddc]
call fcn.00424c73
test eax, eax
je 0x41f616
mov eax, dword [eax + 8]
jmp 0x41f618
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x41f9f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41fa62
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x41fa44
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x41fa43
cmp dl, 0x5c
je 0x41fa43
cmp dl, 0x2f
jne 0x41fa4e
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x41fa31
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41fa64
xor eax, eax
leave
ret 4
Function at 0x41faea
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x41fc2b
cmp byte [eax], bl
je 0x41fc2b
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x41fb45
cmp eax, 3
jne 0x41fb84
cmp byte [ebp - 0x107], 0x3a
jne 0x41fb84
cmp eax, 2
jne 0x41fb66
lea eax, [ebp - 0x108]
push 0x45a784
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41fc2b
or esi, 0xffffffff
jmp 0x41fc28
mov al, byte [ecx]
cmp al, 0x5c
je 0x41fb8e
cmp al, 0x2f
jne 0x41fb93
mov byte [ecx], bl
dec ecx
jmp 0x41fb84
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x41fbd9
test byte [ebp - 0x248], 0x10
je 0x41fbbe
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x41fbd0
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41fc2b
cmp byte [ebp - 0x108], 0x5c
jne 0x41fbeb
cmp byte [ebp - 0x107], 0x5c
je 0x41fbfd
cmp byte [ebp - 0x108], 0x2e
jne 0x41fc2b
cmp byte [ebp - 0x107], 0x2e
jne 0x41fc2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x41fc14
test al, 0x10
je 0x41fc2b
jmp 0x41fc26
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41fc2b
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41fc40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x41fc75
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x420240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a8df4]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00424c73
test eax, eax
je 0x42028a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x420277
push 1
push edx
push eax
call fcn.00420680
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x4202a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a8df4]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00424c73
test eax, eax
je 0x4202ea
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4202d7
push 4
push edx
push eax
call fcn.00420680
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x420300
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a8df4]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00424c73
test eax, eax
je 0x42034a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x420337
push 1
push edx
push eax
call fcn.00420680
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x420680
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x4206a1
push esi
call fcn.0041fc40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x420716
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x420703
dec ecx
je 0x4206ee
sub ecx, 2
je 0x4206db
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x42075f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x420782
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x422b68
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x4a7ab4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4a8e18]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4a8e1c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x421ae7
mov dword [esi + 4], 0x421ba2
mov dword [esi + 8], 0x421c35
mov dword [esi + 0xc], 0x421d6d
mov dword [esi + 0x10], 0x421e3a
mov dword [esi + 0x14], 0x421e94
mov dword [esi + 0x18], 0x421ed4
mov dword [esi + 0x1c], 0x421eec
mov dword [esi + 0x20], fcn.00421f04
mov dword [esi + 0x24], 0x4221e0
mov dword [esi + 0x28], fcn.00422055
mov dword [esi + 0x2c], 0x4221fc
mov dword [esi + 0x30], 0x4222de
mov dword [esi + 0x34], 0x422409
mov dword [esi + 0x38], 0x421c72
mov dword [esi + 0x3c], 0x4224aa
mov dword [esi + 0x40], 0x421b05
mov dword [esi + 0x44], 0x42254d
mov dword [esi + 0x48], 0x422631
mov dword [esi + 0x4c], 0x422680
mov dword [esi + 0x50], 0x422742
mov dword [esi + 0x54], 0x4228ef
mov dword [esi + 0x58], 0x422a33
mov dword [esi + 0x5c], 0x422aee
mov dword [esi + 0x60], 0x4229f2
mov dword [esi + 0x64], 0x4229ab
mov eax, esi
pop esi
ret

Function at 0x423b77
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4a89dc], eax
cmp eax, edi
je 0x423baa
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a89e0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4a89d8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x423be8
cmp dword [ebp - 0xc], 1
je 0x423bf9
cmp dword [ebp - 0xc], 2
jne 0x423be8
cmp dword [ebp - 0x18], 5
jb 0x423bf9
jne 0x423be8
cmp dword [ebp - 0x14], edi
jne 0x423be8
mov dword [0x4a89d8], edi
cmp dword [0x4a89d8], edi
je 0x423bff
call fcn.00423abe
test eax, eax
jne 0x423bff
mov dword [0x4a89d8], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x43f5d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x43f666
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x43f61d
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45aaf0]
inc edx
cmp edx, esi
jl 0x43f601
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x43f641
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45aaf0]
inc edx
cmp edx, esi
jl 0x43f627
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x440530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.00448e90
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x4406ed
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00443f00
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x4405b2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.00448f60
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.00443f60
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00443340
add esp, 0x28
test eax, eax
jne 0x4405f3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x440635
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.00449080
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x440635
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x441890
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.004418e0
mov edx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x440680.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.8
push eax
call fcn.00456690
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x440680.5
jmp dword [eax*4 + 0x440730]
push str.zlib_memory_error
jmp 0x4406a9
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x4406ad
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x4406ad
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.00443f90
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x4406f6
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.00449050
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.00448f10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.004441f0
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443f20
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x443f3a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x443f3a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x44fd7a
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4a7ab4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4a8e18]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4a8e1c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0045634f
mov dword [esi + 0x58], 0x44fcec
mov dword [esi + 0x5c], 0x44fd38
mov dword [esi + 0x10], fcn.0044ee7e
mov dword [esi + 0x30], 0x44f006
mov dword [esi + 0x64], 0x44f112
mov dword [esi + 0x60], 0x44f15f
mov dword [esi + 0x34], 0x44f885
mov dword [esi + 0x24], 0x44f724
mov dword [esi + 0x28], 0x44f74d
mov dword [esi + 0x2c], 0x44f778
mov dword [esi + 0x44], 0x44fb76
mov eax, esi
pop esi
ret 4

Function at 0x451147
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x4511ce
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x4511af
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x451194
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x4511c3
add edx, dword [ebp + 0x10]
jmp 0x4511c6
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x451174
pop edi
pop ebx
pop esi
leave
ret 0x1c
Function at 0x4520f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x45217f
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45215a
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x452140
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x452171
add edi, dword [ebp - 4]
jmp 0x452174
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x452122
pop esi
pop ebx
pop edi
leave
ret 0x1c

Function at 0x4521e8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x452294
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x45226f
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x452249
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x452286
add ecx, dword [ebp - 0x10]
jmp 0x452289
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x45221f
pop esi
pop ebx
leave
ret 0x18
Function at 0x10210460
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1021fb3c], 0
mov byte [0x1021fb40], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x1021fb30], 0x25ec
mov dword [0x1021fb38], 0
mov dword [ebp - 0x1c], eax
jmp 0x102104ce
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [0x1021fb38], 0
mov edx, eax
add edx, 0xffffd26b
add eax, 0x2417
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jmp 0x1021051a
mov eax, dword [ebp - 0x1c]
mov dword [0x1021fb34], 0xaf6
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1021fb34]
mov esi, eax
add esi, 0xffffe4f3
mov dword [0x1021fb30], esi
mov esi, dword [0x1021fb38]
add esi, 1
mov dword [0x1021fb38], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x102104ce
jmp 0x102104a7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x1b14
mov edi, 0xfffff02c
mov ebx, 0x100
mov dword [0x1021fb44], 0
mov dword [0x1021fb30], eax
mov eax, dword [0x1021fb3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov edx, ecx
mov ecx, dword [ebp - 0x10]
div ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + edx]
mov ecx, dword [ebp - 0x38]
add ecx, edx
mov dword [0x1021fb44], ecx
mov eax, ecx
cdq
idiv ebx
mov dword [0x1021fb3c], edx
mov dword [0x1021fb30], 0x1802
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x34]
mov cl, byte [ecx + ebx]
mov byte [0x1021fb40], cl
mov ecx, dword [ebp - 0x3c]
mov dword [0x1021fb30], ecx
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov cl, byte [0x1021fb40]
mov edx, dword [0x1021fb3c]
mov ebx, dword [ebp - 0x18]
mov byte [ebx + edx], cl
mov dword [0x1021fb30], 0x2b4
mov dword [0x1021fb34], 0xfffff6fd
mov edx, dword [0x1021fb38]
add edx, 1
mov dword [0x1021fb38], edx
cmp edx, 0x100
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edi
jl 0x1021051a
mov dword [0x1021fb30], 0xffffeb3b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102106b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1021fb38], 0
mov dword [0x1021fb3c], 0
mov dword [0x1021fb48], 0
mov edi, dword [0x1021fb30]
add edi, 0x3c3
mov dword [0x1021fb30], edi
mov dword [0x1021fb34], 0x5f1
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1021088b
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10210727
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1021fb34], 0x1cfd
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1021fb38], edx
mov dword [0x1021fb30], 0x18db
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1021fb3c], edx
mov dword [0x1021fb34], 0x198a
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1021fb40], cl
mov dword [0x1021fb30], 0x13a5
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1021fb34], 0x1ce8
mov dword [0x1021fb30], 0x15f
mov cl, byte [0x1021fb40]
mov edx, dword [0x1021fb3c]
mov byte [edi + edx], cl
mov edx, dword [0x1021fb30]
add edx, 0xffffedd6
mov dword [0x1021fb30], edx
mov edx, dword [0x1021fb38]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1021fb3c]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1021fb48], ebx
mov dword [0x1021fb30], 0x2cc
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov edx, dword [0x1021fb34]
mov bl, cl
add bl, byte [0x1021fb4d]
mov byte [0x1021fb4c], bl
mov byte [0x1021fb4d], ch
mov byte [0x1021fb4e], cl
xor ch, cl
add edx, 0xffffee6e
mov dword [0x1021fb34], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov byte [edx + esi], ch
mov dword [0x1021fb30], 0x13c3
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x38], esi
je 0x10210889
mov eax, dword [0x1021fb38]
mov ecx, dword [0x1021fb3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x10210727
jmp 0x1021088b
mov dword [0x1021fb30], 0xb60
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret