joyce8/EMBER2024-capa huggingface dataset:
Function at 0x84b1e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, 2
push esi
je 0x84b25f
cmp eax, 3
je 0x84b25f
mov esi, dword [esp + 0x20]
test esi, esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
je 0x84b244
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 0x18]
push esi
push ebx
push ecx
push edx
push eax
call sub.WS2_32.dll_recvfrom
mov ebx, eax
test ebx, ebx
jle 0x84b253
call fcn.0084bcb0
mov byte [esi + 0xb], al
shr eax, 8
mov byte [esi + 0xa], al
shr eax, 8
mov byte [esi + 9], al
shr eax, 8
mov byte [esi + 8], al
call sub.WS2_32.dll_WSAGetLastError
mov ebp, eax
jmp 0x84b32b
mov eax, dword [ebp + 0x18]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
mov ebp, eax
jmp 0x84b32b
lea esi, [ebp + 0x64]
push esi
mov dword [esp + 0x14], esi
call fcn.0084bd60
mov al, byte [ebp + 0xa8]
add esp, 4
test al, al
jne 0x84b31c
mov ebx, dword [ebp + 0x98]
test ebx, ebx
je 0x84b2fb
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x84b2fb
mov eax, dword [esp + 0x20]
test eax, eax
push edi
je 0x84b2be
lea edx, [ebp + 0x88]
mov edi, dword [edx]
mov dword [eax], edi
mov edi, dword [edx + 4]
mov dword [eax + 4], edi
mov edi, dword [edx + 8]
mov dword [eax + 8], edi
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
mov dword [eax], 0x10
test ebx, ebx
jle 0x84b2f0
cmp ebx, ecx
jle 0x84b2c8
mov ebx, ecx
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0xa9]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x9c], 0
mov dword [ebp + 0x98], 0
pop edi
cmp dword [ebp + 0x9c], 0x3e5
je 0x84b31c
mov eax, dword [0x9c3710]
push eax
mov dword [ebp + 0x9c], 0
call sub.WS2_32.dll_WSASetEvent
mov ebp, dword [ebp + 0x9c]
push esi
call fcn.0084bdf0
add esp, 4
test ebx, ebx
jne 0x84b336
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop esi
mov ecx, ebp
pop ebp
mov eax, ebx
pop ebx
jmp fcn.0084a840
Function at 0x84b350
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status

Disassembly:
sub esp, 0x224
mov edx, dword [esp + 0x230]
test edx, edx
mov eax, dword [0x906980]
push esi
mov dword [esp + 0x224], eax
push edi
je 0x84b388
mov ecx, dword [esp + 0x23c]
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x230]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
jne 0x84b3b1
pop edi
mov eax, 0xfffffff9
pop esi
mov ecx, dword [esp + 0x220]
call fcn.007d6cb0
add esp, 0x224
ret
mov ecx, dword [esp + 0x234]
cmp ecx, 0x636f6e6e
je 0x84b3f6
cmp ecx, 0x62696e64
jne 0x84b3ee
lea ecx, [esp + 0x23c]
push ecx
push edx
push eax
call sub.WS2_32.dll_getsockname
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x220]
call fcn.007d6cb0
add esp, 0x224
ret
cmp ecx, 0x70656572
jne 0x84b41c
lea ecx, [esp + 0x23c]
push ecx
push edx
push eax
call sub.WS2_32.dll_getpeername
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x220]
call fcn.007d6cb0
add esp, 0x224
ret
cmp ecx, 0x73746174
jne 0x84b542
mov cl, byte [esi + 0x14]
test cl, cl
jne 0x84b497
lea edx, [esp + 8]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x128], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_select
test eax, eax
je 0x84b497
mov eax, dword [esp + 0x114]
test eax, eax
jbe 0x84b48b
mov byte [esi + 0x14], 0xff
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x84b497
mov byte [esi + 0x14], 1
mov al, byte [esi + 0x14]
test al, al
jle 0x84b523
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x21c]
push eax
push ecx
mov dword [esp + 0x248], 0x10
call sub.WS2_32.dll_getpeername
mov edi, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
jge 0x84b51a
cmp eax, 0x2733
je 0x84b523
cmp eax, 0x2746
je 0x84b523
cmp eax, 0x3e5
je 0x84b523
cmp eax, 0x2743
je 0x84b523
cmp eax, 0x2751
je 0x84b523
cmp eax, 0x2749
je 0x84b51f
mov cl, byte [esi + 0x14]
xor eax, eax
test cl, cl
pop edi
setg al
pop esi
mov ecx, dword [esp + 0x220]
call fcn.007d6cb0
add esp, 0x224
ret
cmp edi, 0xfffffffe
jne 0x84b523
mov byte [esi + 0x14], 0xff
mov cl, byte [esi + 0x14]
xor eax, eax
test cl, cl
pop edi
setg al
pop esi
mov ecx, dword [esp + 0x220]
call fcn.007d6cb0
add esp, 0x224
ret
mov ecx, dword [esp + 0x228]
pop edi
or eax, 0xffffffff
pop esi
call fcn.007d6cb0
add esp, 0x224
ret
Function at 0x84b770
Capabilities:
Connect socket
Connect udp socket
Create raw socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
sub esp, 0x114
mov eax, dword [0x906980]
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x110], eax
cmp ecx, dword [esp + 0x124]
je 0x84b7a8
or eax, 0xffffffff
mov ecx, dword [esp + 0x110]
call fcn.007d6cb0
add esp, 0x114
ret
push ebx
mov ebx, dword [esp + 0x124]
cmp word [ebx], 2
push edi
jne 0x84b927
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov eax, ecx
shr ecx, 2
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push 2
mov byte [ebp + 7], 0
mov byte [ebp + 6], 0
mov byte [ebp + 5], 0
mov byte [ebp + 4], 0
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x84b90e
cmp dword [0x9c36f8], 0x200
jl 0x84b878
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push ecx
push ecx
lea edx, [esp + 0x134]
push edx
push 0x10
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x148]
push ecx
push ebx
push 0xc8000014
push esi
call sub.WS2_32.dll_WSAIoctl
test eax, eax
jge 0x84b84a
call sub.WS2_32.dll_WSAGetLastError
jmp 0x84b851
mov edx, dword [esp + 0x14]
mov dword [ebp + 4], edx
movzx ecx, byte [ebp + 6]
movzx edx, byte [ebp + 7]
xor eax, eax
mov ah, byte [ebp + 4]
mov al, byte [ebp + 5]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x7f000001
jne 0x84b878
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
movzx edx, byte [ebp + 6]
movzx eax, byte [ebp + 7]
xor ecx, ecx
mov ch, byte [ebp + 4]
mov cl, byte [ebp + 5]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
jne 0x84b8c5
mov ecx, dword [esp + 0x134]
push ecx
push ebx
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x84b8c5
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x14]
push eax
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x84b8c5
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], ecx
movzx eax, byte [ebp + 6]
movzx ecx, byte [ebp + 7]
xor edx, edx
mov dh, byte [ebp + 4]
mov dl, byte [ebp + 5]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
jne 0x84b908
push 0x100
lea edx, [esp + 0x24]
push edx
call sub.WS2_32.dll_gethostname
lea eax, [esp + 0x20]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x84b908
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp + 4], eax
push esi
call sub.WS2_32.dll_closesocket
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.007d6cb0
add esp, 0x114
ret
mov edi, dword [esp + 0x120]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x118]
pop edi
mov eax, 0xfffffffd
pop ebx
call fcn.007d6cb0
add esp, 0x114
ret
Function at 0x84c010
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
push 0x9c3724
mov dword [0x9c3864], esi
mov dword [0x90d3e0], 0xffffffff
mov dword [0x9c3718], esi
mov dword [0x9c371c], esi
mov dword [0x9c3720], esi
call edi
push 0x9c384c
mov dword [0x9c3840], esi
mov dword [0x9c3844], esi
mov dword [0x9c3848], esi
call edi
lea eax, [esp + 8]
push eax
push esi
push esi
push 0x84bfd0
push esi
push esi
mov dword [0x9c3868], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
cmp eax, esi
mov dword [0x9c3868], eax
pop esi
je 0x84c09f
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [0x9c3868]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x84fc97
Capabilities:
Encode data using xor

Disassembly:
push 0x23
push eax
call fcn.007c97c0
add esp, 8
test eax, eax
je 0x84fcba
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
je 0x84fcb0
push esi
mov esi, ecx
shl ecx, 5
sar esi, 0x1b
xor esi, ecx
movsx ecx, dl
mov dl, byte [eax + 1]
xor ecx, esi
inc eax
test dl, dl
jne 0x84fc98
pop esi
mov edx, dword [esp + 4]
mov dword [edx + 0x98], ecx
ret
Function at 0x8522d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
test eax, eax
push edi
mov edi, dword [esp + 0x18]
je 0x8522f3
mov eax, dword [esi + 0x74]
cmp dword [esi + 0x78], eax
je 0x85231b
test edi, edi
jne 0x852303
test ebp, ebp
jne 0x852303
test ebx, ebx
je 0x852383
push esi
call fcn.00851c50
mov eax, dword [esi + 0x7c]
add esp, 4
test eax, eax
je 0x852383
mov eax, dword [esi + 0x74]
cmp dword [esi + 0x78], eax
jne 0x852383
mov ecx, dword [esi + 0x7c]
add eax, 0xfffffff4
cmp eax, 1
lea esi, [ecx + 0xc]
jge 0x852330
mov esi, 0x890978
jmp 0x852334
mov byte [esi + eax], 0
test edi, edi
je 0x852357
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx + 3]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [edi], edx
test ebp, ebp
je 0x852378
movzx edi, byte [ecx + 6]
xor edx, edx
mov dh, byte [ecx + 4]
mov dl, byte [ecx + 5]
movzx ecx, byte [ecx + 7]
shl edx, 8
or edx, edi
shl edx, 8
or edx, ecx
mov dword [ebp], edx
test ebx, ebx
je 0x852386
pop edi
mov dword [ebx], esi
pop esi
pop ebp
pop ebx
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x852570
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
mov eax, dword [0x9c3e10]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x85259d
push 0xa
push 0xffffffffffffffff
push 0x8c7470
push 0x9c3d08
mov dword [0x9c3e10], 1
call fcn.00852570
add esp, 0x10
mov edx, dword [esp + 0x18]
cmp edx, ebx
mov ebp, dword [esp + 0xc]
jge 0x8525ad
neg edx
jmp 0x8525c7
xor eax, eax
nop
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x8525b0
mov byte [ebp + 0x100], bl
mov dword [ebp + 0x104], ebx
cmp dword [esp + 0x14], ebx
jge 0x8525ec
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp byte [ecx], bl
je 0x852666
jmp 0x8525e0
inc eax
cmp byte [ecx + eax], bl
jne 0x8525e0
mov dword [esp + 0x14], eax
cmp eax, ebx
jle 0x852666
push esi
shl edx, 8
mov eax, edx
push edi
xor edi, edi
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x852664
xor ecx, ecx
mov eax, esi
cdq
idiv dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
movzx edx, byte [edx + eax]
xor edx, ecx
mov ecx, dword [edx*4 + 0x8c7070]
mov eax, edi
shr eax, 8
xor eax, ecx
mov ecx, esi
and ecx, 0xff
mov bl, byte [ecx + ebp]
lea edx, [ecx + ebp]
mov ecx, eax
and ecx, 0xff
movzx edi, bl
xor ecx, edi
mov edi, dword [ecx*4 + 0x8c7070]
shr eax, 8
xor eax, edi
mov edi, eax
mov ecx, edi
and ecx, 0xff
mov al, byte [ecx + ebp]
mov byte [edx], al
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov byte [ecx + ebp], bl
jl 0x852603
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x852670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
push ebp
push esi
mov esi, dword [esp + 0xc]
mov al, byte [esi + 0x100]
mov ebp, dword [esi + 0x104]
jle 0x8526f3
movzx ecx, al
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea edi, [ecx + esi]
mov ecx, ebp
and ecx, 0xff
mov dword [esp + 0x1c], edx
movzx edx, byte [edi]
xor edx, ecx
mov ecx, dword [edx*4 + 0x8c7070]
shr ebp, 8
xor ebp, ecx
inc al
mov byte [esp + 0x14], al
movzx eax, al
lea edi, [eax + esi]
xor eax, eax
mov al, byte [edi]
xor edx, edx
mov ecx, ebp
and ecx, 0xff
mov dl, byte [ecx + esi]
mov byte [edi], dl
mov byte [ecx + esi], al
sub eax, edx
and eax, 0xff
mov dl, byte [eax + esi]
xor byte [ebx], dl
mov eax, dword [esp + 0x1c]
inc ebx
dec eax
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x14]
jne 0x8526a2
pop edi
pop ebx
mov dword [esi + 0x104], ebp
mov byte [esi + 0x100], al
pop esi
pop ebp
ret
Function at 0x8572d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
mov esi, eax
test esi, esi
je 0x857399
mov ebp, dword [esi]
mov eax, dword [ebx + 0x1914]
mov ecx, dword [ebx + 0x1910]
add ebp, 8
sub ecx, eax
lea edx, [ebp + 8]
cmp ecx, edx
jge 0x8572fc
pop esi
or eax, 0xffffffff
pop ebp
ret
mov ecx, dword [ebx + 0x1918]
shl ecx, 0xb
add ecx, eax
lea eax, [ecx + ebx + 0x910]
mov byte [eax], 0x47
mov byte [eax + 1], 0x53
mov dl, byte [esi]
mov byte [eax + 2], dl
mov cl, byte [esi]
not cl
mov byte [eax + 3], cl
mov ecx, ebp
mov edx, ecx
shr ecx, 2
push edi
add esi, 8
lea edi, [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
test ebp, ebp
lea edx, [eax + 4]
jle 0x857350
mov esi, ebp
movzx di, byte [edx]
imul ecx, ecx, 0xd
add ecx, edi
inc edx
dec esi
jne 0x857343
mov byte [eax + ebp + 4], cl
mov byte [eax + ebp + 5], ch
mov byte [eax + ebp + 6], 0xd
mov byte [eax + ebp + 7], 0xa
mov eax, dword [ebx + 0x1914]
test eax, eax
pop edi
jne 0x85737c
mov eax, dword [ebx + 0x80]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov eax, dword [ebx + 0x1914]
add ebp, 8
add eax, ebp
mov dword [ebx + 0x1914], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x191c], eax
mov eax, dword [ebx + 0x1914]
test eax, eax
je 0x8573fd
mov ecx, dword [ebx + 0xbc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x8573fd
mov ecx, dword [ebx + 0x1914]
lea edx, [ebx + 0xac]
push edx
mov edx, dword [ebx + 0x1918]
lea eax, [ebx + 0xc8]
push eax
push ecx
mov ecx, dword [ebx + 0x80]
shl edx, 0xb
lea eax, [edx + ebx + 0x910]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor dword [ebx + 0x1918], 1
mov dword [ebx + 0x1914], 0
pop esi
xor eax, eax
pop ebp
ret

Function at 0x8574f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x814
mov eax, dword [0x906980]
push ebx
mov ebx, ecx
mov dword [esp + 0x814], eax
mov eax, dword [ebx + 0xd4]
test eax, eax
jne 0x857525
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor eax, ebx
test eax, eax
mov dword [ebx + 0xd4], eax
je 0x857516
pop esi
mov eax, dword [ebx + 0xd4]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
call fcn.008572d0
mov ecx, dword [esp + 0x814]
pop ebx
call fcn.007d6cb0
add esp, 0x814
ret
Function at 0x858540
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push 0x1948
call fcn.0078af30
mov esi, eax
xor ebx, ebx
add esp, 4
xor eax, eax
cmp esi, ebx
je 0x8586e1
push edi
mov ecx, 0x652
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], fcn.00858540
mov dword [esi + 4], fcn.00857b80
mov dword [esi + 8], 0x857c50
mov dword [esi + 0xc], 0x857d90
mov dword [esi + 0x10], fcn.00858180
mov dword [esi + 0x14], 0x8581e0
mov dword [esi + 0x18], fcn.00858270
mov dword [esi + 0x1c], fcn.008582d0
mov dword [esi + 0x20], 0x857c40
mov dword [esi + 0x24], fcn.008582e0
mov dword [esi + 0x28], 0x858320
mov dword [esi + 0x2c], 0x858330
mov dword [esi + 0x30], fcn.00858470
mov dword [esi + 0x34], 0x8584f0
mov ecx, dword [str.SERIAL]
lea eax, [esi + 0x4c]
mov dword [eax], ecx
mov dx, word [0x8c76a0]
mov word [eax + 4], dx
mov cl, byte [0x8c76a2]
lea edx, [esi + 0x1924]
push edx
mov byte [eax + 6], cl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [esp + 0x14]
add edi, 0x10
mov eax, edi
imul eax, dword [esp + 0x18]
push eax
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], eax
call fcn.0078af30
mov dword [esi + 0xf0], edi
imul edi, dword [esp + 0x20]
push edi
mov dword [esi + 0xe8], eax
mov dword [esi + 0xf4], edi
call fcn.0078af30
add esp, 8
mov dword [esi + 0x104], eax
mov dword [esi + 0x90c], ebx
mov dword [esi + 0x1918], ebx
mov dword [esi + 0x1914], ebx
mov dword [esi + 0x1910], 0x800
mov dword [esi + 0xd0], 1
mov dword [esi + 0xd4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push 1
push 1
push ebx
mov dword [esi + 0xcc], eax
mov dword [esi + 0x80], 0xffffffff
call edi
push ebx
push 1
push 1
push ebx
mov dword [esi + 0x94], eax
call edi
push ebx
push 1
push 1
push ebx
mov dword [esi + 0xa8], eax
call edi
mov dword [esi + 0xbc], eax
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x857810
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x8586ce
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x85ad10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x85ad27
add eax, 0x10a
mov dword [esp + 4], eax
jmp fcn.0085aeb0
ret

Function at 0x85ad50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0xc
cmp ecx, 1
jge 0x85ad61
mov ecx, 1
push ebp
push esi
mov esi, dword [esp + 0x18]
mov byte [esi + 0x100], 0
mov byte [esi + 0x101], 0
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jb 0x85ad77
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x85ae9c
push ebx
xor bl, bl
test ecx, ecx
jle 0x85ae9b
mov eax, 1
sub eax, esi
mov dword [esp + 0xc], eax
mov eax, 2
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, 3
sub eax, esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, esi
jmp 0x85add0
mov dl, byte [ecx]
mov byte [esp + 0x2c], dl
xor edx, edx
div ebp
mov al, byte [edx + edi]
add al, byte [esp + 0x2c]
add bl, al
movzx edx, bl
lea eax, [edx + esi]
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [esp + 0x2c]
mov byte [eax], dl
mov al, byte [ecx + 1]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x2c], al
lea eax, [edx + ecx]
xor edx, edx
div ebp
mov al, byte [edx + edi]
add al, byte [esp + 0x2c]
add bl, al
movzx edx, bl
lea eax, [edx + esi]
mov dl, byte [eax]
mov byte [ecx + 1], dl
mov dl, byte [esp + 0x2c]
mov byte [eax], dl
mov al, byte [ecx + 2]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x2c], al
lea eax, [edx + ecx]
xor edx, edx
div ebp
mov al, byte [edx + edi]
add al, byte [esp + 0x2c]
add bl, al
movzx edx, bl
lea eax, [edx + esi]
mov dl, byte [eax]
mov byte [ecx + 2], dl
mov dl, byte [esp + 0x2c]
mov byte [eax], dl
mov al, byte [ecx + 3]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x2c], al
lea eax, [edx + ecx]
xor edx, edx
div ebp
add ecx, 4
mov al, byte [edx + edi]
add al, byte [esp + 0x2c]
add bl, al
movzx edx, bl
lea eax, [edx + esi]
mov dl, byte [eax]
mov byte [ecx - 1], dl
mov dl, byte [esp + 0x2c]
mov byte [eax], dl
mov eax, dword [esp + 0x20]
add eax, 4
cmp eax, 0x100
mov dword [esp + 0x20], eax
jb 0x85add0
dec dword [esp + 0x28]
jne 0x85adc3
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x85aeb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
movzx edx, byte [eax + 0x101]
movzx ecx, byte [eax + 0x100]
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 4], edx
jle 0x85af44
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
jmp 0x85aee0
mov edi, dword [esp + 0x10]
inc ecx
and ecx, 0xff
movzx edx, byte [ecx + eax]
add edi, edx
mov dword [esp + 0x18], edx
and edi, 0xff
movzx edx, byte [edi + eax]
mov byte [ecx + eax], dl
mov dword [esp + 0x20], edx
mov dl, byte [esp + 0x18]
mov byte [edi + eax], dl
mov edx, dword [esp + 0x20]
mov bl, byte [esi]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
add edx, edi
and edx, 0xff
mov dl, byte [edx + eax]
xor bl, dl
mov byte [esi], bl
inc esi
dec ebp
jne 0x85aee0
pop edi
pop esi
mov byte [eax + 0x100], cl
mov cl, byte [esp + 8]
pop ebx
mov byte [eax + 0x101], cl
pop ebp
pop ecx
ret
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebp
pop ecx
ret
Function at 0x85afb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
xor ecx, ecx
add eax, 2
movzx esi, byte [eax]
xor edx, edx
mov dh, byte [eax - 2]
add eax, 4
mov dl, byte [eax - 5]
shl edx, 8
or edx, esi
movzx esi, byte [eax - 3]
shl edx, 8
or edx, esi
mov dword [esp + ecx*4 + 0x18], edx
inc ecx
cmp ecx, 0x10
jne 0x85afc6
lea ecx, [esp + 0x20]
mov edx, 0x40
mov eax, dword [ecx + 0x2c]
mov ebp, dword [ecx + 0x18]
mov ebx, dword [ecx - 8]
mov esi, dword [ecx]
xor eax, ebp
xor eax, ebx
xor eax, esi
mov esi, eax
shr esi, 0x1f
add eax, eax
or esi, eax
mov dword [ecx + 0x38], esi
add ecx, 4
dec edx
jne 0x85aff5
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov edi, dword [edi + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov ebx, eax
not ebx
and ebx, esi
mov edi, edx
and edi, eax
or ebx, edi
mov edi, ecx
shr edi, 0x1b
mov ebp, ecx
shl ebp, 5
or edi, ebp
add ebx, edi
mov edi, dword [esp + 0x10]
add ebx, dword [esp + edi*4 + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x14], esi
mov esi, edx
mov edx, eax
shr eax, 2
shl edx, 0x1e
or edx, eax
inc edi
cmp edi, 0x14
lea ebx, [ebx + ebp + 0x5a827999]
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x10], edi
jne 0x85b033
mov edi, edi
mov ebx, ecx
shr ebx, 0x1b
mov ebp, ecx
shl ebp, 5
or ebx, ebp
mov ebp, esi
xor ebp, edx
xor ebp, eax
add ebx, ebp
add ebx, dword [esp + edi*4 + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x14], esi
mov esi, edx
mov edx, eax
shr eax, 2
shl edx, 0x1e
or edx, eax
inc edi
cmp edi, 0x28
lea ebx, [ebx + ebp + 0x6ed9eba1]
mov eax, ecx
mov ecx, ebx
jne 0x85b080
mov dword [esp + 0x10], edi
mov edi, edx
or edi, eax
and edi, esi
mov ebx, edx
and ebx, eax
or edi, ebx
mov ebx, ecx
shr ebx, 0x1b
mov ebp, ecx
shl ebp, 5
or ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x10]
add edi, dword [esp + ebx*4 + 0x18]
mov ebp, dword [esp + 0x14]
lea ebp, [edi + ebp - 0x70e44324]
mov edi, esi
mov esi, edx
mov edx, eax
shr eax, 2
shl edx, 0x1e
or edx, eax
inc ebx
cmp ebx, 0x3c
mov eax, ecx
mov dword [esp + 0x14], edi
mov ecx, ebp
mov dword [esp + 0x10], ebx
jne 0x85b0c1
mov dword [esp + 0x10], ebx
mov ebx, ecx
shr ebx, 0x1b
mov ebp, ecx
shl ebp, 5
or ebx, ebp
mov ebp, esi
xor ebp, edx
xor ebp, eax
add ebx, ebp
mov ebp, dword [esp + 0x10]
add ebx, dword [esp + ebp*4 + 0x18]
lea ebx, [ebx + edi - 0x359d3e2a]
mov edi, esi
mov esi, edx
mov edx, eax
shr eax, 2
shl edx, 0x1e
or edx, eax
inc ebp
cmp ebp, 0x50
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x10], ebp
jne 0x85b112
mov ecx, dword [esp + 0x15c]
mov ebp, dword [ecx + 8]
add ebp, ebx
mov ebx, dword [ecx + 0xc]
add ebx, eax
mov eax, dword [ecx + 0x10]
add eax, edx
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x14]
add eax, esi
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0x18]
add eax, edi
pop edi
pop esi
mov dword [ecx + 8], ebp
pop ebp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x18], eax
pop ebx
add esp, 0x148
ret