joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.00441dd0
mov eax, dword [0x44f004]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0041f2e2
mov esi, eax
add esp, 0x20
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
cmp dword [ebp + 8], 0
jne 0x4012b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [esp + 0x810]
push ecx
push 0x400
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test esi, esi
js 0x4012b9
lea eax, [esp + 0x808]
push eax
push 0x44b1a0
mov eax, 0x400
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x18]
lea eax, [eax + esi*2]
push eax
call fcn.00401140
add esp, 0x14
push 0
push str.Python_Launcher_is_sorry_to_say_...
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 8]
call fcn.0040da07
int3
Function at 0x401bd0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push pe_nt_image_headers32
push 0x46acc0
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401c20
lea ecx, [edi*2 + 2]
push ecx
call fcn.004216e3
mov esi, eax
add esp, 4
test esi, esi
je 0x401db9
push edi
push esi
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401c2d
test edi, edi
je 0x401cc1
mov esi, 0x46acc0
cmp word [esi], 0
je 0x401cc1
push esi
push str.Checking_for_Python_executable_in_virtual_env__ls_n
call fcn.004011c0
push str.pythonw.exe
push esi
push str._lsScripts_ls
push 0xffffffffffffffff
push 0x104
push 0x46b8d0
call fcn.00401140
add esp, 0x20
push 0x46b8d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x46b8d0
cmp eax, 0xffffffff
jne 0x401c85
push str.Python_executable__ls_missing_from_virtual_env_n
call fcn.004011c0
add esp, 8
jmp 0x401cc1
mov eax, dword [0x46aec0]
imul esi, eax, 0x424
inc eax
mov dword [0x46aec0], eax
push 0x104
add esi, 0x450eb0
lea eax, [esi + 0x14]
push eax
call fcn.004203c4
push str.venv
push 8
push esi
mov dword [esi + 0x10], 0
call fcn.004203c4
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
push eax
call edi
test eax, eax
je 0x401d24
cmp dword [ebp - 4], 0
je 0x401d24
push str.locating_Pythons_in_64bit_registry_n
call fcn.004011c0
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.004013f0
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.004013f0
add esp, 0x1c
push str.locating_Pythons_in_native_registry_n
call fcn.004011c0
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.004013f0
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.004013f0
add esp, 0x1c
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
je 0x401d98
cmp dword [ebp - 8], 0
je 0x401d98
push 1
push 0x40
push 0x20119
mov edx, str.SOFTWAREMicrosoftAppModelLookasideuserSoftwarePythonPythonCore
mov ecx, 0x80000002
call fcn.004013f0
add esp, 0xc
push 0x401a10
push 0x424
push dword [0x46aec0]
push 0x450eb0
call fcn.00420680
add esp, 0x10
mov esp, ebp
pop ebp
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401210
int3
Function at 0x4020f0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x44f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push edi
push str.run_child:_about_to_run__ls_n
call fcn.004011c0
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push 0x70
lea eax, [ebp - 0x78]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x4022db
cmp dword [ebp - 0x7c], 0x70
jne 0x4022db
test esi, esi
je 0x4022db
or dword [ebp - 0x68], 0x3000
lea eax, [ebp - 0x78]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x402196
push str.Job_information_setting_failed
push 0x65
call fcn.00401210
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004049e0
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00402080
test eax, eax
jne 0x4021dd
push str.stdin_duplication_failed
push 0x64
call fcn.00401210
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00402080
test eax, eax
jne 0x4021fe
push str.stdout_duplication_failed
push 0x64
call fcn.00401210
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00402080
test eax, eax
jne 0x40221f
push str.stderr_duplication_failed
push 0x64
call fcn.00401210
push 1
push 0x4020e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40223c
push str.control_handler_setting_failed
push 0x65
call fcn.00401210
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], pe_nt_image_headers32
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40227a
push edi
push str.Unable_to_create_process_using__ls
push 0x65
call fcn.00401210
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4022c3
push str.Failed_to_get_exit_code_of_process
push 0x65
call fcn.00401210
push dword [ebp - 0x7c]
push str.child_process_exit_code:__d_n
call fcn.004011c0
add esp, 8
push dword [ebp - 0x7c]
call fcn.0040da07
push str.Job_information_querying_failed
push 0x65
call fcn.00401210
int3
Function at 0x42e608
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e1ef

Function at 0x42e90e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e7e2

Function at 0x43155f
Capabilities:
Set environment variable

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x900ba5f
pop dword [ebp - 0xc]
mov eax, 0x900ba5f
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xe2cef96
add dword [ebp - 0x1c], 0x402555b5
mov dword [ebp - 0x18], 0x7dc07f86
add dword [ebp - 0x18], 0xb472ccbf
mov dword [ebp - 0x14], 0x6965c958
add dword [ebp - 0x14], 0xe2e67ad6
mov dword [ebp - 0x10], 0xda3562ca
add dword [ebp - 0x10], 0x25ca9d36
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xad49893f
sub dword [ebp - 0x1c], 0x38d71fe9
mov dword [ebp - 0x18], 0x5058ad41
sub dword [ebp - 0x18], 0xeec4bcc
mov dword [ebp - 0x14], 0x774257d8
add dword [ebp - 0x14], 0xec2d1494
mov dword [ebp - 0x10], 0x88304b27
sub dword [ebp - 0x10], 0x88304b27
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xa904ac10
sub eax, 0x9ff9cbc0
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x60ae1
push 0
call eax
mov ecx, 0x4d763239
add ecx, 0xb28a0e8d
mov esi, eax
mov edx, 0x95210277
sub edx, 0x8c11c277
add edx, dword [ebp - 0xc]
mov edi, 0x6f3dc03f
sub edi, 0x76f299c3
xor dword [ebp - 4], eax
mov ebx, dword [edx]
xor dword [ebp - 8], edx
sub ebx, edi
xor dword [ebp - 8], 0xefefe3e7
mov dword [esi], ebx
add esi, 0x2233ef4d
sub esi, 0x2233ef49
add edx, 0xa02ca499
add edx, 0x5fd35b6b
loop 0x900bb77
add eax, 0xbec0e8a9
sub eax, 0xbebff2be
mov ebx, eax
add eax, 0xa7566126
add eax, 0x58a99edf
mov ecx, 0x9000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x900c236
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x90a819f
call fcn.09007445
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
push 0x1a
pop esi
push 0x2b
pop eax
cmove esi, eax
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, esi
or eax, 0x8000
cmp byte [ebp + 0xc], bl
push ebx
push ebx
cmovne esi, eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x900c292
xor al, al
jmp 0x900c2e2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0900cf2c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], ebx
push str.Adobe
call fcn.0900d7af
test al, al
je 0x900c2d5
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0900ba50
mov ecx, edi
call fcn.0900e6d7
mov bl, al
lea ecx, [ebp - 0x230]
call fcn.0900ba50
mov al, bl
call fcn.090091e6
ret
Function at 0x903d7c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x1f8
mov eax, 0x90a9b67
call fcn.09007445
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1fc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x200], ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
mov ecx, 0x41444245
and dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1e4]
push 1
push eax
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x1f4], 0x4000000
mov dword [ebp - 0x1f0], 0x6c696e6b
mov dword [ebp - 0x1d8], 0x61637370
mov dword [ebp - 0x1b8], 0xf6d6
mov dword [ebp - 0x1b4], 0x10000
mov dword [ebp - 0x1b0], 0xd32d
mov dword [ebp - 0x1ac], ecx
call fcn.09007585
add esp, 0x14
lea eax, [ebp - 0x1fc]
lea ecx, [ebp - 0x17c]
push eax
push ebx
call fcn.0900ba50
push str.ACE_Device_Link
push ebx
lea ecx, [ebp - 0x74]
call fcn.0903a1fe
and dword [ebp - 4], 0
lea eax, [ebp - 0x74]
test esi, esi
lea ecx, [ebp - 0x17c]
cmovne eax, esi
push eax
call fcn.0900ba50
push dword [ebp - 0x1e4]
lea ecx, [ebp - 0x4c]
push ebx
call fcn.09039fb0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x17c]
call fcn.0900ba50
lea ecx, [ebp - 0x24]
call fcn.0900ba50
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x17c]
call fcn.0900ba50
push edi
lea ecx, [ebp - 0x17c]
call fcn.0900ba50
lea ecx, [ebp - 0x17c]
call fcn.0900955c
mov ecx, dword [ebp - 0x200]
mov edi, eax
mov ebx, dword [edi + 0x28]
push ebx
call fcn.0900ba50
mov ecx, dword [edi]
push eax
push ebx
push 0
mov esi, dword [ecx + 0x18]
mov ecx, esi
mov dword [ebp - 0x204], eax
call dword [0x90ae2d0]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0900642e
mov edi, dword [ebp - 0x204]
push ebx
push edi
call fcn.0900ba50
push ebx
mov ebx, dword [ebp - 0x200]
push edi
push ebx
call fcn.0900ba50
add esp, 0x14
mov ecx, ebx
mov esi, eax
push edi
call fcn.0900ba50
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], vtable.CProfileTag.0
mov byte [ebp - 4], 0
call fcn.0903ab60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0903ac7e
mov eax, esi
call fcn.090091e6
ret
Function at 0x90500f8
Capabilities:
Get memory capacity

Disassembly:
push 0x28
mov eax, 0x90aab4f
call fcn.0900578b
mov esi, ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
sub eax, dword [ebp - 0x20]
sub eax, dword [esi + 8]
sbb ecx, dword [esi + 0xc]
js 0x9050163
jg 0x905012d
test eax, eax
jb 0x9050163
mov edx, dword [esi + 4]
imul edi, edx, 3
test ecx, ecx
jg 0x9050163
jl 0x905013d
cmp eax, edi
ja 0x9050163
cmp eax, edx
jbe 0x9050157
mov ecx, dword [esi]
sub eax, edx
and dword [ebp - 4], 0
push eax
call fcn.0900ba50
jmp 0x9050163
jae 0x9050163
mov ecx, dword [esi]
sub edx, eax
push edx
call fcn.0900ba50
call fcn.0900625f
ret
Function at 0x906c6ef
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x90abd2c
call fcn.09007445
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
xor ebx, ebx
mov esi, 0x20019
push esi
push ebx
push str.SOFTWARE
push 0x80000002
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x906c74e
mov dword [ebp - 0x14c], ebx
jmp 0x906c8cd
lea eax, [ebp - 0x148]
push eax
push esi
push ebx
push str.Adobe
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x906c777
mov dword [ebp - 0x148], ebx
jmp 0x906c8cd
lea eax, [ebp - 0x144]
push eax
push esi
push ebx
push str.Color
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x906c7a0
mov dword [ebp - 0x144], ebx
jmp 0x906c8cd
lea eax, [ebp - 0x13c]
push eax
push esi
push ebx
push str.Monitor
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x906c7c9
mov dword [ebp - 0x13c], ebx
jmp 0x906c8cd
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
mov esi, ebx
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x906c81b
cmp dword [ebp - 0x154], 4
jne 0x906c81b
mov esi, dword [ebp - 0x120]
cmp esi, 0x3e7
ja 0x906c8cd
push esi
push str.Monitor_u
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.0900ba50
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x906c85b
mov dword [ebp - 0x140], ebx
jmp 0x906c8e2
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x906c8cd
cmp dword [ebp - 0x154], 1
jne 0x906c8cd
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x138]
call fcn.090169c5
lea eax, [ebp - 0x138]
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
call fcn.0900ba50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.0900ba50
mov bl, 1
cmp dword [ebp - 0x140], 0
je 0x906c8e2
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x13c], 0
je 0x906c8f7
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], 0
je 0x906c90c
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x148], 0
je 0x906c921
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14c], 0
je 0x906c936
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.090091e6
ret
Function at 0x906e3b8
Capabilities:
Encode data using xor

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 0x90abdd2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1430
call fcn.090a6f20
mov eax, dword [0x90e6610]
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]
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x1424], edi
mov dword [ebp - 0x1430], eax
mov dword [ebp - 0x1428], eax
mov dword [ebp - 0x143c], edi
call fcn.090168fd
xor ecx, ecx
push 0xf
mov eax, ecx
mov dword [ebp - 4], ecx
pop esi
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1420], esi
xor edx, edx
mov edi, ecx
div esi
mov dword [ebp - 0x141c], edi
lea esi, [ebp - 0x416]
mov dword [ebp - 0x1434], eax
mov eax, edi
xor edx, edx
div dword [ebp - 0x1420]
mov edi, ecx
mov dword [ebp - 0x1438], eax
mov edx, dword [ebp - 0x1434]
mov byte [esi - 1], dl
xor edx, edx
mov byte [esi], al
mov eax, edi
div dword [ebp - 0x1420]
mov edx, 0xff
mov byte [esi + 1], al
add edi, edx
mov eax, dword [ebp - 0x1438]
add esi, 4
cmp edi, 0xff0
jb 0x906e460
mov edi, dword [ebp - 0x141c]
add edi, edx
mov dword [ebp - 0x141c], edi
cmp edi, 0xff0
jb 0x906e44e
push ecx
mov ecx, dword [ebp - 0x1424]
lea esi, [edx + 1]
push 0x5058595a
push 0x706c6162
push esi
lea eax, [ebp - 0x1418]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0900ba50
push esi
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0900ba50
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x141c], esi
movzx eax, word [ebp + esi - 0xc16]
movzx ecx, word [ebp + esi - 0x1416]
sub ecx, eax
mov eax, ecx
movzx ecx, word [ebp + esi - 0x1414]
cdq
mov edi, eax
movzx eax, word [ebp + esi - 0xc14]
sub ecx, eax
xor edi, edx
mov eax, ecx
sub edi, edx
mov ecx, dword [ebp - 0x141c]
cdq
mov esi, eax
xor esi, edx
movzx eax, word [ebp + ecx - 0xc12]
sub esi, edx
movzx ecx, word [ebp + ecx - 0x1412]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x1428]
cdq
xor eax, edx
sub eax, edx
cmp ecx, edi
cmovl ecx, edi
cmp ecx, esi
cmovl ecx, esi
mov esi, dword [ebp - 0x141c]
cmp ecx, eax
cmovl ecx, eax
add esi, 8
mov dword [ebp - 0x1428], ecx
mov dword [ebp - 0x141c], esi
cmp esi, 0x800
jb 0x906e4ed
cmp ecx, 0xa
ja 0x906e5a9
mov eax, dword [ebp - 0x142c]
mov esi, dword [ebp - 0x1420]
add eax, 0xff
mov dword [ebp - 0x142c], eax
push 0
pop ecx
cmp eax, 0xff0
jb 0x906e436
mov byte [ebp - 0x1430], 1
mov ecx, dword [ebp - 0x1424]
or dword [ebp - 4], 0xffffffff
call fcn.09016a6b
mov al, byte [ebp - 0x1430]
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.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x907dd32
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 0x90ac387
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f0
call fcn.090a6f20
mov eax, dword [0x90e6610]
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, ecx
mov dword [ebp - 0x13e8], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x13e4], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.0900ba50
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x907ddb7
push 0
push 0x9c4
push 0xf424
push dword [esi + 4]
call fcn.0900ba50
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.090168fd
and dword [ebp - 4], 0
lea edi, [ebp - 0x48]
push 0xc
pop ecx
mov eax, ecx
mov dword [ebp - 0x13dc], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x13dc]
mov word [edi], ax
lea edi, [edi + 2]
cmp ecx, 0xc800c
jb 0x907ddce
and dword [ebp - 0x13e0], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13dc], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x13d8]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x907de2a
mov edx, dword [ebp - 0x13d4]
inc edx
mov dword [ebp - 0x13d4], edx
cmp edx, 0x19
jb 0x907de1d
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0x13d0]
push 0
push 0x434d594b
push 0x504c4142
push 0x271
push eax
push eax
call fcn.0900ba50
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x1400]
mov edi, dword [ebp - 0x13e0]
push 1
push 0x9c4
push edi
push dword [eax]
call fcn.0900ba50
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 1
call fcn.09005d4d
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13d8], 0x19
lea edi, [eax + 2]
mov dword [ebp - 0x13d4], 0x19
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
movzx eax, cx
imul eax, eax, 0xff
shr ecx, 0x10
add eax, 0x4000
shr eax, 0xf
mov byte [edi - 2], al
imul eax, ecx, 0xff
mov ecx, 0x4000
add eax, ecx
shr eax, 0xf
mov byte [edi - 1], al
movzx eax, dx
imul eax, eax, 0xff
shr edx, 0x10
add eax, ecx
shr eax, 0xf
mov byte [edi], al
imul eax, edx, 0xff
add eax, ecx
shr eax, 0xf
mov byte [edi + 1], al
add edi, 4
sub dword [ebp - 0x13d4], 1
jne 0x907dec6
sub dword [ebp - 0x13d8], 1
jne 0x907debc
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 0
call fcn.09005e1d
mov edi, dword [ebp - 0x13e0]
mov eax, dword [ebp - 0x13dc]
add edi, 0x9c4
mov esi, dword [ebp - 0x13e4]
add eax, 2
mov dword [ebp - 0x13dc], eax
mov dword [ebp - 0x13e0], edi
cmp edi, 0xf424
jb 0x907de06
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.09016a6b
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.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4