joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x407008]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [0x407018]
push esi
cmp eax, 0xffffffff
jne 0x401ae8
push 0x100
lea eax, [esp + 0x30]
mov dword [0x407018], 0
push 0
push eax
mov dword [esp + 0x24], 0x11c
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x12c], ax
mov dword [esp + 0x12e], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
mov word [esp + 0x152], ax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 6
xor ecx, ecx
mov dword [esp + 0x2c], 0
push eax
mov word [esp + 0x13c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x401ae3
lea eax, [esp + 0xc]
mov dword [0x407018], 1
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ae3
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.EnableLUA
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ad9
cmp dword [esp + 8], eax
setne al
mov dword [0x407018], eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x407018]
mov ecx, dword [esp + 0x13c]
pop esi
xor ecx, esp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x401b21
cmp word [edx], 0
jne 0x401b3b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x248]
movlpd qword [ebp - 0x228], xmm0
push eax
movlpd qword [ebp - 0x220], xmm0
movlpd qword [ebp - 0x218], xmm0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0x540
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x401bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
push 0x7530
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
jne 0x401fff
call fcn.004019a0
test eax, eax
je 0x401fff
push ecx
push str._s__t
xor edx, edx
call fcn.00401b00
add esp, 8
test eax, eax
je 0x401fe9
push ecx
mov edx, eax
mov ecx, 0x803
call fcn.00401c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
push 0x2000b
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402104
push 0x34
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4020e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40207b
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jne 0x402076
mov eax, dword [ebp - 8]
test eax, eax
je 0x402057
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x1c]
cmp esi, 3
je 0x402076
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, 1
je 0x402088
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4020bb
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
call edi
push ebx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
call edi
push ebx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
Function at 0x4026b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0
push dword [0x407538]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.ZuluServerAgent
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x402630
push 0xfffffffffffffffc
push eax
mov dword [0x407534], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x4022a0
mov dword [0x407530], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
add esp, 0xc
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x40274b
push esi
mov esi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call esi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x402734
pop esi
push dword [0x407530]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x407530]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x402d30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x10], ecx
push esi
push edi
cmp ebx, 0xffffffff
je 0x402dc9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
js 0x402dc9
jne 0x402d71
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
xor ecx, ecx
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x402dc9
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 8]
cmp ecx, esi
je 0x402ddc
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
push ecx
push esi
push edi
mov byte [edi + esi], 0
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.004032d0
push edi
mov byte [ebp - 9], al
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, byte [ebp - 9]
add esp, 4
test al, al
je 0x402dcb
lea ecx, [esi + 0x38]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00403c2c
mov esp, ebp
pop ebp
ret
Function at 0x43b700
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x43b727
jmp 0x43b710
mov cl, byte [eax]
movzx edx, cl
mov dl, byte [edx + 0x5f93c8]
xor dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b710
ret
Function at 0x45d2b0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, ecx
mov ecx, dword [esp + 0xc]
push ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
push esi
mov dword [eax], 0x5fa1f8
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
xor ebx, ebx
lea esi, [eax + 0x43c]
mov edx, ebx
shr edx, 1
test bl, 1
je 0x45d2f1
xor edx, 0xedb88320
test dl, 1
je 0x45d300
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d302
shr edx, 1
test dl, 1
je 0x45d311
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d313
shr edx, 1
test dl, 1
je 0x45d322
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d324
shr edx, 1
test dl, 1
je 0x45d333
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d335
shr edx, 1
test dl, 1
je 0x45d344
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d346
shr edx, 1
test dl, 1
je 0x45d355
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d357
shr edx, 1
test dl, 1
je 0x45d366
shr edx, 1
xor edx, 0xedb88320
jmp 0x45d368
shr edx, 1
mov dword [esi], edx
inc ebx
add esi, 4
cmp ebx, 0x100
jb 0x45d2e2
pop esi
mov byte [eax + 0x93b], cl
pop ebx
ret 0xc

Function at 0x45d3e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx + 0x10]
test edx, edx
push ebx
push ebp
push esi
push edi
je 0x45d4d1
mov edi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
lea esi, [edi + 4]
cmp esi, ebp
jae 0x45d4d1
xor eax, eax
mov dword [ecx + 8], esi
mov ah, byte [edi + edx]
movzx ebx, byte [edi + edx + 2]
mov al, byte [edi + edx + 1]
movzx edi, byte [edi + edx + 3]
shl eax, 8
or eax, ebx
shl eax, 8
or edi, eax
lea eax, [esi + 4]
cmp eax, ebp
jae 0x45d4d1
xor ebx, ebx
mov dword [ecx + 8], eax
mov bh, byte [esi + edx]
movzx eax, byte [esi + edx + 2]
mov bl, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 3]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x18]
shl ebx, 8
or ebx, edx
mov dword [eax], ebx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea edx, [eax + edi + 4]
cmp edx, esi
mov dword [esp + 0x10], ebx
jae 0x45d4d1
mov esi, 0xfffffffc
or edx, 0xffffffff
cmp edi, esi
jle 0x45d496
mov ebx, dword [ecx + 0x10]
lea ebp, [eax + ebx]
xor ebx, ebx
mov bl, byte [esi + ebp]
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [ecx + ebx*4 + 0x43c]
inc esi
cmp esi, edi
jl 0x45d476
mov ebx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x10]
lea esi, [eax + edi]
movzx ecx, byte [esi + ebp + 2]
xor eax, eax
mov ah, byte [esi + ebp]
add esi, ebp
not edx
mov al, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl eax, 8
or eax, ecx
cmp edx, eax
jne 0x45d4d1
cmp ebx, 0x49454e44
je 0x45d4d1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
Function at 0x45f510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov eax, esi
imul eax, ecx
lea eax, [eax + eax*2]
cmp eax, 0x800000
jae 0x45f556
cmp ecx, 0xb40
jg 0x45f556
cmp esi, 0xb40
jle 0x45f56a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x45f537
cmp ecx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
jl 0x45f683
cmp esi, 1
jl 0x45f683
mov esi, dword [esp + 0x64]
mov ecx, esi
mov dword [esi + 0x264], 1
call fcn.004b2510
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
xor ebp, ebp
push ebp
push 7
push ebp
push 6
push ecx
push edx
mov ecx, esi
call dword [eax + 0x3c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004ee2b0
cmp dword [esp + 0x3c], ebp
je 0x45f67a
lea ecx, [esp + 0x20]
call fcn.004edb00
test eax, eax
je 0x45f67a
lea ecx, [esp + 0x20]
lea edi, [esi + 0x15c]
push ecx
mov ecx, edi
call fcn.00479750
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x54]
push 2
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
call fcn.0047a490
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], ebp
mov edx, dword [ebx + 0x54]
mov ecx, edi
mov dword [esi + 0x268], edx
call fcn.004797f0
mov eax, dword [esi + 0x588]
push eax
mov ecx, edi
mov dword [esi + 0x268], ebp
call fcn.00479750
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.004ff930
lea ecx, [esp + 0x20]
call fcn.004edb20
mov dword [esi + 0x264], ebp
lea ecx, [esp + 0x20]
call fcn.004ee300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x46a6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + 0x90]
test ebx, ebx
push edi
mov dword [ebp - 4], ebx
je 0x46a8fb
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov ecx, edi
shl ecx, 8
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push edx
mov ecx, edx
push ecx
add eax, 0x20
push eax
call fcn.0043df30
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x20]
sar eax, 8
xor edx, edx
add esp, 0xc
cmp eax, edx
mov dword [ebp - 8], eax
jne 0x46a7fd
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ecx + 0x94]
sar eax, 0xf
add eax, 0x80
sub esi, edi
and edx, 0xc
push edx
push eax
call fcn.0046a350
movzx dx, byte [ebx + eax*4 + 2]
movzx cx, byte [ebx + eax*4 + 3]
lea eax, [ebx + eax*4]
mov word [ebp - 8], dx
movzx dx, byte [eax]
mov word [ebp - 6], cx
movzx cx, byte [eax + 1]
mov word [ebp - 0xc], dx
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 8
test eax, eax
mov word [ebp - 0xa], cx
mov dword [ebp + 8], eax
je 0x46a7c5
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
movq mm0, qword [ebp - 0xc]
movq qword [edi], mm0
movq qword [edi + 8], mm0
movq qword [edi + 0x10], mm0
movq qword [edi + 0x18], mm0
add edi, 0x20
sub ecx, 1
jne 0x46a7ac
emms
mov ecx, eax
neg ecx
lea ecx, [esi + ecx*4]
mov esi, dword [ebp + 0x14]
shl eax, 5
add esi, eax
test ecx, ecx
je 0x46a8fb
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ecx*8 - 5]
shr ecx, 2
lea edi, [esi + 8]
mov dword [esi], edx
mov dword [esi + 4], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x94]
shr ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], 0x80
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xff
mov dword [ebp - 0x18], edx
push ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, eax
test ebx, ebx
je 0x46a8f8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
pxor mm0, mm0
movq mm1, qword [ebp - 0x2c]
movq mm2, qword [ebp - 0x24]
cmp dword [ebp + 8], 0
je 0x46a8d0
movq mm4, qword [ebp - 0x1c]
cmp dword [ebp + 8], 1
je 0x46a890
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x46a860
jmp 0x46a8f8
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pshufw mm5, mm3, 0xe4
pand mm5, mm2
pcmpeqd mm5, mm2
pxor mm3, mm5
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x46a890
jmp 0x46a8f8
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pminsw mm3, mm2
pmaxsw mm3, mm0
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x46a8d0
pop ebx
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x38]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x46aa90
mov edx, dword [edi + 0xc]
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, ebp
shl ecx, 8
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
mov dword [esp + 0x10], ecx
mov cl, byte [0x680ed1]
add eax, 0x20
lea edx, [esp + 0xc]
test cl, cl
mov ecx, edx
je 0x46a966
push edx
call fcn.00460fb0
add esp, 4
jmp 0x46a971
push ecx
push edx
push eax
call fcn.0043df30
add esp, 0xc
mov eax, dword [edi + 0x38]
mov edi, dword [esp + 0x28]
push ebx
mov ebx, dword [eax + 0x20]
sar ebx, 8
sub edi, ebp
test ebx, ebx
jne 0x46aa02
movzx eax, byte [eax + 0x94]
mov ecx, dword [esp + 0x10]
and eax, 0xc
sar ecx, 0xf
push eax
add ecx, 0x80
push ecx
call fcn.0046a350
movzx dx, byte [esi + eax*4 + 3]
movzx cx, byte [esi + eax*4 + 2]
lea eax, [esi + eax*4]
mov word [esp + 0x26], dx
movzx dx, byte [eax + 1]
movzx ax, byte [eax]
add esp, 8
test edi, edi
mov word [esp + 0x1c], cx
mov word [esp + 0x1a], dx
mov word [esp + 0x18], ax
je 0x46aa8e
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [edi*8 - 5]
pop ebx
lea edi, [esi + 8]
mov dword [esi + 4], edx
shr ecx, 2
pop ebp
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x10
ret
test edi, edi
je 0x46aa8e
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x38]
movzx edx, byte [edx + 0x94]
mov eax, ebp
sar eax, 0xf
and edx, 0xc
add eax, 0x80
cmp edx, 4
je 0x46aa4d
cmp edx, 8
je 0x46aa57
cmp eax, 0x100
jle 0x46aa45
mov eax, 0x100
jmp 0x46aa5c
test eax, eax
jge 0x46aa5c
xor eax, eax
jmp 0x46aa5c
test ah, 1
je 0x46aa57
xor eax, 0xff
and eax, 0xff
movzx dx, byte [esi + eax*4 + 3]
mov word [ecx + 6], dx
movzx dx, byte [esi + eax*4 + 2]
mov word [ecx + 4], dx
movzx dx, byte [esi + eax*4 + 1]
mov word [ecx + 2], dx
movzx ax, byte [esi + eax*4]
mov word [ecx], ax
add ebp, ebx
add ecx, 8
dec edi
mov dword [esp + 0x10], ebp
jne 0x46aa12
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret
Function at 0x46b3d0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x680ed0]
test al, al
je 0x46b408
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
cmp eax, 0x13
mov dword [esp + 4], edx
jne 0x46b3f0
jmp fcn.0046aaa0
cmp eax, 0x12
jne 0x46b403
test byte [ecx + 0x94], 0xc
jne 0x46b3eb
jmp fcn.0046b0f0
jmp fcn.0046a6e0
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
cmp eax, 0x13
mov dword [esp + 4], ecx
jne 0x46b41f
jmp fcn.0046ae40
cmp eax, 0x12
jne 0x46b429
jmp fcn.0046b250
jmp fcn.0046a910
Function at 0x471df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov dword [eax], ecx
shr ecx, 2
and ebx, 3
test ecx, ecx
push esi
jbe 0x471e32
push edi
mov edi, ecx
movzx ecx, word [edx]
mov esi, dword [eax]
add esi, ecx
mov ecx, esi
mov dword [eax], esi
shl ecx, 0x10
xor ecx, esi
add edx, 2
mov dword [eax], ecx
movzx esi, word [edx]
shl esi, 0xb
xor esi, ecx
mov dword [eax], esi
mov ecx, esi
shr esi, 0xb
add esi, ecx
add edx, 2
dec edi
mov dword [eax], esi
jne 0x471e03
pop edi
mov ecx, ebx
dec ecx
je 0x471e76
dec ecx
je 0x471e61
dec ecx
jne 0x471e8c
movzx ecx, word [edx]
mov esi, dword [eax]
add esi, ecx
mov ecx, esi
shl ecx, 0x10
xor ecx, esi
mov dword [eax], ecx
movzx edx, byte [edx + 2]
shl edx, 0x12
xor edx, ecx
mov ecx, edx
shr ecx, 0xb
add ecx, edx
mov dword [eax], ecx
jmp 0x471e8c
movzx edx, word [edx]
mov ecx, dword [eax]
add edx, ecx
mov ecx, edx
shl ecx, 0xb
xor ecx, edx
mov edx, ecx
shr edx, 0x11
jmp 0x471e88
movzx ecx, byte [edx]
mov edx, dword [eax]
add edx, ecx
mov ecx, edx
shl ecx, 0xa
xor ecx, edx
mov edx, ecx
shr edx, 1
add edx, ecx
mov dword [eax], edx
mov edx, dword [eax]
lea ecx, [edx*8]
xor ecx, edx
mov edx, ecx
shr edx, 5
add edx, ecx
lea ecx, [edx*4]
xor ecx, edx
mov edx, ecx
shr edx, 0xf
add ecx, edx
mov edx, ecx
shl edx, 0xa
xor edx, ecx
pop esi
mov dword [eax], edx
pop ebx
ret
Function at 0x487040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
mov edi, ecx
mov ecx, dword [edi + 0x50]
xor ebx, ebx
cmp ecx, ebx
mov dword [edi], 0x5fad9c
je 0x487059
push edi
call fcn.004863b0
cmp dword [edi + 0x6c], ebx
push esi
je 0x4870cc
nop
mov esi, dword [edi + 0x6c]
cmp esi, ebx
mov eax, dword [esi + 0x44]
mov dword [edi + 0x6c], eax
je 0x4870c7
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov ecx, dword [esi + 0x28]
push ecx
call fcn.005ddc00
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov edx, dword [esi + 0x1c]
push edx
call fcn.005ddc00
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x10]
push eax
call fcn.005ddc00
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 4]
push ecx
call fcn.005ddc00
push esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.005ddc00
add esp, 0x14
cmp dword [edi + 0x6c], ebx
jne 0x487060
mov eax, dword [edi + 0x58]
cmp eax, ebx
lea esi, [edi + 0x58]
jne 0x4870da
mov dword [esi], ebx
jmp 0x4870e4
push ebx
push esi
call fcn.005dd250
add esp, 8
cmp dword [edi + 0x78], ebx
je 0x487108
lea esp, [esp]
mov ecx, dword [edi + 0x78]
cmp ecx, ebx
mov edx, dword [ecx + 0x5c]
mov dword [edi + 0x78], edx
je 0x487103
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x78], ebx
jne 0x4870f0
mov eax, dword [edi + 0x64]
cmp eax, ebx
je 0x487127
mov ecx, dword [eax + 0x10]
add eax, 0x10
cmp ecx, ebx
jne 0x48711d
mov dword [eax], ebx
jmp 0x487127
push ebx
push eax
call fcn.005dd250
add esp, 8
mov eax, dword [edi + 0x64]
cmp eax, ebx
je 0x48716b
mov ecx, dword [eax + 4]
test ecx, 0x40000000
jne 0x487168
cmp ecx, ebx
je 0x487168
mov edx, ecx
and edx, 0xff
dec edx
je 0x487168
dec ecx
mov dword [eax + 4], ecx
and ecx, 0xff
dec ecx
jne 0x487168
push eax
and eax, 0xfffff000
mov ecx, dword [eax]
add ecx, 0x340
call fcn.005dc720
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], ebx
mov ecx, dword [edi + 0x5c]
cmp ecx, ebx
je 0x4871b1
mov eax, dword [ecx + 4]
test eax, 0x40000000
jne 0x4871ae
cmp eax, ebx
je 0x4871ae
mov edx, eax
and edx, 0xff
dec edx
je 0x4871ae
dec eax
mov dword [ecx + 4], eax
and eax, 0xff
dec eax
jne 0x4871ae
push ecx
and ecx, 0xfffff000
mov ecx, dword [ecx]
add ecx, 0x340
call fcn.005dc720
mov dword [edi + 0x5c], ebx
mov dword [esi], ebx
mov eax, dword [edi + 0x54]
cmp eax, ebx
pop esi
je 0x4871f8
mov ecx, dword [eax + 4]
test ecx, 0x40000000
jne 0x4871f5
cmp ecx, ebx
je 0x4871f5
mov edx, ecx
and edx, 0xff
dec edx
je 0x4871f5
dec ecx
mov dword [eax + 4], ecx
and ecx, 0xff
dec ecx
jne 0x4871f5
push eax
and eax, 0xfffff000
mov ecx, dword [eax]
add ecx, 0x340
call fcn.005dc720
mov dword [edi + 0x54], ebx
lea ecx, [edi + 8]
call fcn.00436090
mov dword [edi], 0x5f7a90
pop edi
pop ebx
ret