joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dae50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], 0
xor esi, esi
lea ecx, [ebx - 0x100000]
nop dword [eax]
mov eax, ebx
mov edi, 0x100000
sub eax, esi
cmp esi, ecx
push 0
cmovae edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4daeb9
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x4daeb9
add esi, eax
lea ecx, [ebx - 0x100000]
cmp esi, ebx
jb 0x4dae70
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
push 0x550bb8
call fcn.0048d5c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4daf40
Capabilities:
Check for time delay via gettickcount
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51726d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x30]
mov dword [ebx + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [ebp - 0x24]
shr esi, 0x14
push esi
push 0x524b28
push 0x550bb8
call fcn.0048d900
add esp, 0xc
cmp esi, 0x190
jae 0x4dafad
mov dword [ebx + 0x48], 0
xor ecx, ecx
jmp 0x4dafb0
mov ecx, dword [ebx + 0x48]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x3c], esp
push ecx
push eax
call fcn.00469370
add esp, 8
push 0x2eec
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.actionUseMemoryFiles
call fcn.0044c020
mov byte [ebp - 4], 1
call fcn.00479f50
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047a730
cmp dword [ebx + 0x48], 0
jne 0x4db007
mov eax, 1
jmp 0x4db109
mov ecx, dword [ebx + 0x3c]
lea edx, [ebp - 0x44]
xor edi, edi
push edx
mov dword [ebp - 0x34], edi
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004d9780
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], esi
push eax
push 1
call fcn.004d9930
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4db0f7
test esi, esi
je 0x4db0f7
push 0x524b40
push 0x550bb8
call fcn.0048d5c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 8
call esi
mov ecx, dword [ebp - 0x38]
mov edi, eax
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
sub esp, 0x18
mov ebx, eax
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x535ba0
call fcn.0044c020
mov byte [ebp - 4], 3
call esi
sub eax, edi
push eax
push 0x3aa8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.costUncompressInMemory
call fcn.0044c020
mov byte [ebp - 4], 4
call fcn.00479f50
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047ab30
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Uncompress
push 0x550bb8
call fcn.0048d5c0
mov esi, dword [ebp - 0x38]
add esp, 0xc
test ebx, ebx
mov ebx, dword [ebp - 0x40]
je 0x4db0f2
mov ecx, esi
mov dword [ebx + 0x48], 0
call fcn.004a9120
mov edi, 1
push esi
mov ecx, ebx
call fcn.004daee0
lea ecx, [ebp - 0x44]
call fcn.0044c080
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x4db180
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
call fcn.004034e0
mov ebx, eax
test ebx, ebx
jne 0x4db1b1
push 0x525570
push 0x550bb8
call fcn.0048d900
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4db209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push 0x5255a8
push 0x550bb8
call fcn.0048d900
mov eax, dword [ebx]
add esp, 0x10
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push dword [eax]
push 0x5255ec
push 0x550bb8
call fcn.0048d900
add esp, 0x10
test edi, edi
je 0x4db2ae
cmp edi, 0x1400000
ja 0x4db2ae
push edi
call fcn.004e7b42
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4db25d
push edi
push 0x525624
push 0x550bb8
call fcn.0048d900
add esp, 0xc
jmp 0x4db2ae
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4db28d
push edi
push str._vc_runtime_
push 0x550bb8
call fcn.0048d900
mov edi, dword [ebp + 8]
add esp, 0xc
jmp 0x4db2a5
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
call fcn.0044c0a0
push eax
push edi
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [esi]
neg eax
sbb esi, esi
inc esi
push edi
call fcn.004e7b3d
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4db340
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push 0x5256e8
push ebx
call fcn.004f42bf
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00497290
push ebx
lea ecx, [ebp - 0x58]
call fcn.004977d0
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
call fcn.0048e560
add esp, 4
mov ecx, eax
call fcn.0044a640
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.0044a650
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push esi
mov ecx, 0x553080
mov dword [ebp - 0x60], eax
call fcn.004c83a0
test eax, eax
je 0x4db453
sub esp, 0x18
mov ecx, esp
push 0x535ba0
call fcn.0044c020
call edi
sub eax, dword [ebp - 0x60]
push eax
push 0x3a99
sub esp, 0x18
mov ecx, esp
push str.costInit
call fcn.0044c020
call fcn.00479f50
mov ecx, eax
call fcn.0047ab30
sub esp, 0x18
mov ecx, esp
push 0x535ba0
call fcn.0044c020
push 0x2ee2
sub esp, 0x18
mov ecx, esp
push str.actionInstallerEnterRunning
call fcn.0044c020
call fcn.00479f50
mov ecx, eax
call fcn.0047a730
push str.g_App.Run...
push 0x550bb8
call fcn.0048d5c0
add esp, 8
mov ecx, 0x553080
call fcn.004c92d0
mov ebx, eax
push ebx
push str.g_App.Run_return:_d
push 0x550bb8
call fcn.0048d5c0
add esp, 0xc
mov ecx, 0x553080
call fcn.004c81a0
sub esp, 0x18
mov edi, eax
mov ecx, esp
push edi
push ecx
call fcn.004d85f0
add esp, 8
push 0x2ee3
sub esp, 0x18
mov ecx, esp
push str.actionInstallerRunFinish
call fcn.0044c020
call fcn.00479f50
mov ecx, eax
call fcn.0047a730
mov ecx, 0x553080
call fcn.004c99d0
lea ecx, [ebp - 0x58]
call fcn.00497ae0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, 0x5530d4
test ebx, ebx
je 0x4db4ca
xor esi, esi
push esi
push 0x64
call fcn.004db560
push 0x535
mov ecx, 0x5530d4
call fcn.004db530
jmp 0x4db4d7
push edi
push 0x64
mov esi, 1
call fcn.004db560
lea ecx, [ebp - 0x58]
call fcn.00497410
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4db6b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_rtp_svc_shutdown_event
mov esi, 1
push 0
push esi
call fcn.004db600
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x4db723
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Global_rtpsvc_instance_mutex
push esi
call fcn.004db600
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4db71b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4db714
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
cmove esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x4dc160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5173f5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c75c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0047d240
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push str.recommandLevel
lea ecx, [ebp - 0x1c]
call fcn.004c81c0
test eax, eax
je 0x4dc1d2
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
call fcn.004e8f13
add esp, 4
jmp 0x4dc1d4
xor eax, eax
cmp dword [ebp + 0xc], 0
jne 0x4dc1ef
cmp eax, 1
jne 0x4dc1e9
cmp dword [ebp + 8], 0
je 0x4dc1e9
mov dword [esi], eax
jmp 0x4dc1ef
mov dword [esi], 2
mov eax, dword [esi]
test eax, eax
jle 0x4dc200
push 0
mov ecx, esi
call fcn.004dc480
mov eax, dword [esi]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.CVersionChecker::Init_bCoverInstall_d_bSlient_d_nSimpleVersion_d
push 0x550bb8
call fcn.0048d5c0
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.0044c080
lea ecx, [ebp - 0x1c]
call fcn.004c79e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4fcf41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fcdc0

Function at 0x502b83
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00502843
Function at 0x10002370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000237f
pop dword [ebp - 0x2c]
mov eax, 0xdb24869d
add eax, 0x34db9ce2
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3ad6864b
sub dword [ebp - 0x3c], 0xec844100
mov dword [ebp - 0x38], 0x3c0461eb
add dword [ebp - 0x38], 0xf62eea5a
mov dword [ebp - 0x34], 0xc1d66e0f
add dword [ebp - 0x34], 0x8a75d61f
mov dword [ebp - 0x30], 0xa2f0ee45
sub dword [ebp - 0x30], 0xa2f0ee45
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x96891600
add eax, 0x7978daa4
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xda393a0
sub dword [ebp - 0x3c], 0x99312a4a
mov dword [ebp - 0x38], 0x8076f959
sub dword [ebp - 0x38], 0x3f0a97e4
mov dword [ebp - 0x34], 0xf07736f6
add dword [ebp - 0x34], 0x72f83576
mov dword [ebp - 0x30], 0x99af74b6
add dword [ebp - 0x30], 0x66508b4a
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bed9
push 0
call eax
mov ecx, 0x4aa2
mov ebx, eax
mov esi, 0x10029a00
add esi, dword [ebp - 0x2c]
mov edi, 0xd0c04e23
sub edi, 0x5355d0f6
mov edx, dword [esi]
xor dword [ebp - 0x1c], 0x2c8a38dd
sub edx, edi
sub dword [ebp - 0x1c], eax
mov dword [ebx], edx
sub dword [ebp - 0x20], 0xe0ebdcde
add ebx, 0x6754e410
add ebx, 0x98ab1bf4
add esi, 0xbd59ffc3
sub esi, 0xbd59ffbf
loop 0x10002490
add eax, 0x16efa0de
add eax, 0xe9117c7d
xor ebx, ebx
add ebx, eax
add eax, 0x1a27eb2a
sub eax, 0x1a27eb25
mov ecx, 0xda6a236e
sub ecx, 0xca6a236e
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4031c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
jne 0x4031d6
push edi
call fcn.00402e30
add esp, 4
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x4031f3
push dword [ebp + 0x10]
lea eax, [edi + 8]
push dword [ebp + 0xc]
push eax
call fcn.004057f0
add esp, 0xc
pop edi
pop ebp
ret
cmp eax, 2
jne 0x40322c
push dword [edi]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0045485e
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jae 0x40322c
push edi
call fcn.00402de0
push str.Disabled_writing_session_log_due_to_error_while_writing
push dword [edi + 0x18]
mov dword [edi + 4], 3
call fcn.00440dc0
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x405650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x485840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x405682
movsx eax, cl
sub eax, 0x41
jmp 0x4056c4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x405691
movsx eax, cl
sub eax, 0x47
jmp 0x4056c4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4056a0
movsx eax, cl
add eax, 4
jmp 0x4056c4
cmp cl, 0x2b
jne 0x4056ac
mov eax, 0x3e
jmp 0x4056c4
cmp cl, 0x2f
jne 0x4056b8
mov eax, 0x3f
jmp 0x4056c4
cmp cl, 0x3d
jne 0x405741
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x405670
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x405741
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x405741
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x4056f2
cmp eax, ecx
jne 0x405741
lea ebx, [ecx + 2]
jmp 0x4056fd
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x405726
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x40572e
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c55f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c55f
mov esp, ebp
pop ebp
ret

Function at 0x4062a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x4062d5
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x4062c0
pop ebx
mov eax, 0x100
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret

Function at 0x409f50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0x34
push dword [ebp + 8]
call fcn.00401470
add esp, 8
cmp byte [eax], 0
je 0x409f6e
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00405b70
push 0x35
push dword [ebp + 8]
call fcn.00401470
add esp, 8
test eax, eax
je 0x409f85
pop ebp
jmp fcn.00445d90
xor eax, eax
pop ebp
ret
Function at 0x41b400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x485840]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
movups xmm0, xmmword [edi + 0x3c8]
movups xmmword [ebp - 0x34], xmm0
test ebx, ebx
jle 0x41b565
dec ebx
add edx, 3
shr ebx, 4
inc ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
push esi
movzx ecx, byte [edx - 3]
lea esi, [edx - 1]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.0041b3e0
add esp, 8
xor edi, edi
mov edx, dword [ebp + edi - 0x34]
lea esi, [esi + 4]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x18
xor cl, al
mov eax, ebx
mov byte [esi - 6], cl
mov ecx, edx
shr ecx, 0x10
shr eax, 0x10
xor cl, al
mov eax, ebx
mov byte [esi - 5], cl
mov ecx, edx
shr eax, 8
xor dl, bl
shr ecx, 8
xor cl, al
mov byte [esi - 3], dl
mov eax, dword [ebp + edi - 0x24]
mov dword [ebp + edi - 0x34], eax
add edi, 4
mov byte [esi - 4], cl
cmp edi, 0x10
jl 0x41b4e4
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x41b440
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
pop esi
pop edi
pop ebx
movups xmmword [eax + 0x3c8], xmm0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c55f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
movups xmmword [edi + 0x3c8], xmm0
pop edi
xor ecx, ebp
pop ebx
call fcn.0044c55f
mov esp, ebp
pop ebp
ret
Function at 0x41c2c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x485840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
movups xmm0, xmmword [ebx + 0x3c8]
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
test edi, edi
jle 0x41c41d
mov edx, dword [ebp - 8]
dec edi
shr edi, 4
add esi, 2
inc edi
nop word [eax + eax]
movzx ecx, byte [esi - 2]
movzx eax, byte [esi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 3]
xor dword [ebp - 0x14], ecx
movzx ecx, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
xor dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
xor dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
xor edx, ecx
push ebx
mov dword [ebp - 8], edx
call fcn.0041c2a0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, ecx
mov byte [esi + 1], cl
shr eax, 0x18
mov byte [esi - 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
mov eax, ecx
mov ecx, dword [ebp - 0x10]
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 7], al
mov eax, ecx
shr eax, 8
mov edx, dword [ebp - 8]
lea esi, [esi + 0x10]
mov byte [esi - 8], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 6], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 5], al
mov eax, edx
shr eax, 8
mov byte [esi - 7], cl
mov byte [esi - 4], al
mov byte [esi - 3], dl
sub edi, 1
jne 0x41c300
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
movups xmmword [ebx + 0x3c8], xmm0
xor ecx, ebp
pop ebx
call fcn.0044c55f
mov esp, ebp
pop ebp
ret
Function at 0x41d4b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
lea edx, [eax + 2]
mov bh, byte [eax]
mov cl, byte [eax + 1]
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], edi
jle 0x41d50f
mov al, cl
push esi
inc bh
movzx esi, bh
add esi, edx
mov bl, byte [esi]
add al, bl
movzx ecx, al
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx edx, byte [esi]
mov esi, dword [ebp + 0xc]
movzx ecx, bl
add edx, ecx
movzx ecx, dl
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
xor byte [edi + esi], cl
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x41d4d0
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 1]
pop esi
pop edi
mov byte [eax], bh
mov byte [eax + 1], cl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x485840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
lea ebx, [eax + 2]
mov word [eax], 0
mov edi, ebx
mov dword [ebp - 0x108], ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
sub edi, eax
mov eax, ecx
lea esi, [ebp - 0x104]
xor edx, edx
add esi, ecx
div dword [ebp + 0x10]
mov byte [edi + esi], cl
inc ecx
mov al, byte [edx + ebx]
mov byte [esi], al
cmp ecx, 0x100
jb 0x41d5a6
mov esi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
xor edi, edi
mov dword [ebp - 0x10c], 0x100
sub ebx, esi
mov dl, byte [esi]
lea esi, [esi + 1]
movzx eax, byte [ebx + esi - 1]
add eax, edi
movzx ecx, dl
add ecx, eax
sub dword [ebp - 0x10c], 1
movzx edi, cl
mov ecx, dword [ebp - 0x108]
mov al, byte [edi + ecx]
mov byte [esi - 1], al
mov byte [edi + ecx], dl
jne 0x41d5e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c55f
mov esp, ebp
pop ebp
ret