joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300d829f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi], 0x3023cd18
je 0x300d82b3
call fcn.300e6c17
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
lea ecx, [esi + 0xbc]
call fcn.300046b5
lea ecx, [esi + 0xb0]
call fcn.300046b5
lea ecx, [esi + 0x10]
pop esi
jmp fcn.300d4e5e

Function at 0x300d835a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d83b6
push dword [esi]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x300d83b0
push dword [esi]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x300d83b0
push edi
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
push edi
call fcn.3022ba80
inc eax
push eax
call fcn.300367dc
mov ebx, eax
push edi
push ebx
call fcn.3022bdd0
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x300d865f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push edi
xor edi, edi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d8699
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call esi
test eax, eax
jne 0x300d868f
push 0xd
call esi
test eax, eax
jne 0x300d868f
push dword [ebx]
call esi
test eax, eax
je 0x300d8692
xor edi, edi
inc edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x300d89d1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push 8
push dword [esp + 0x14]
mov edi, ecx
call fcn.300d8511
push dword [esp + 0xc]
call fcn.3022ba80
pop ecx
inc eax
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x300d8a38
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
push dword [esp + 0xc]
push eax
call fcn.3022bdd0
pop ecx
pop ecx
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d8a38
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.kernel32.dll_GetLastError]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret 8
Function at 0x300ddee6
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x1c], 0xca
jne 0x300ddf1c
push esi
call fcn.300e6c17
test eax, eax
pop ecx
jl 0x300ddf91
cmp byte [esi + 0x48], 0
je 0x300ddf15
xor eax, eax
mov dword [esi + 0x1c], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x1c], 0xcb
mov eax, dword [esi + 0x1c]
cmp eax, 0xcb
jne 0x300ddf93
mov eax, dword [esi + 0x198]
cmp byte [eax + 0x10], 0
je 0x300ddf80
mov eax, dword [esi + 8]
test eax, eax
je 0x300ddf3d
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x198]
push esi
call dword [eax]
test eax, eax
pop ecx
jl 0x300ddf91
je 0x300ddf7c
cmp eax, 2
je 0x300ddf80
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x300ddf32
cmp eax, 3
je 0x300ddf63
cmp eax, 1
jne 0x300ddf32
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x300ddf32
mov ecx, dword [esi + 0x124]
add dword [eax + 8], ecx
jmp 0x300ddf32
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x84]
mov dword [esi + 0x8c], eax
call fcn.300dddfc
pop esi
ret
cmp eax, 0xcc
je 0x300ddf8c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffec
mov dword [eax + 0x18], ecx
pop eax
pop esi
ret

Function at 0x300ef521
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x14]
jmp 0x300ef542
cmp dword [eax + 0x20], 0
je 0x300ef532
cmp dword [eax + 0x24], 5
je 0x300ef538
cmp dword [eax + 0x24], 4
jne 0x300ef53f
mov dword [eax + 0x24], 6
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x300ef526
jmp fcn.300ef0c4

Function at 0x30103130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push edi
mov dword [esi], 1
call ebx
mov ebp, dword [sym.imp.kernel32.dll_GetTickCount]
and dword [esp + 0x10], 0
call ebp
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
push edi
je 0x30103188
call ebx
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jb 0x30103162
jmp 0x30103192
mov dword [esp + 0x14], 1
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x3011852b
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x30243b90
mov dword [esi + 0x1c], 0x30243b78
call fcn.30118385
lea ecx, [esi + 0x120]
call fcn.3013409e
mov ecx, esi
pop esi
jmp fcn.300c2bed

Function at 0x3012b8ce
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
test eax, eax
mov dword [esi], 0x30246288
mov dword [esi + 0x1c], 0x30246270
je 0x3012b8ee
and dword [eax + 0x34], 0
mov byte [esi + 0x21], 1
call fcn.3013409e
mov ecx, esi
pop esi
jmp fcn.300c2bed
Function at 0x3013460f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x118]
mov eax, dword [edi]
test eax, eax
mov dword [esi], 0x30247ec8
mov dword [esi + 0x1c], 0x30247eac
je 0x30134636
push eax
call fcn.300367ec
and dword [edi], 0
pop ecx
mov ecx, esi
call fcn.30134163
lea ecx, [esi + 0x120]
call fcn.3013409e
pop edi
mov ecx, esi
pop esi
jmp fcn.300c2bed
Function at 0x30150340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x2c]
add edx, edx
add esi, esi
test ecx, ecx
mov dword [esp + 0xc], edx
jle 0x301504d9
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
push ebp
mov eax, ebx
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x28]
lea edx, [edx + eax*4]
mov ebp, edi
sub ebp, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x301503b1
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [edx*4 + 0x302497f0]
lea eax, [edi + esi*2]
push eax
lea edx, [esi + edi]
push edx
push edi
push ebp
mov dword [esp + 0x30], ecx
call fcn.300e6c17
lea eax, [edi + esi*2 + 0x10]
push eax
lea ecx, [esi + edi + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [edi + 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.300e6c17
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
lea eax, [ebx + esi*2]
push eax
add ebp, 0x20
lea ecx, [esi + ebx]
push ecx
mov dword [esp + 0x48], ebp
mov ebp, dword [edx*4 + 0x302497f0]
mov edx, dword [esp + 0x60]
push ebx
push edx
mov ecx, ebp
add edi, 0x20
call fcn.300e6c17
lea eax, [ebx + esi*2 + 0x10]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esi + ebx + 0x10]
push ecx
lea edx, [ebx + 0x10]
push edx
add eax, 0x10
push eax
mov ecx, ebp
call fcn.300e6c17
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
add eax, 0x20
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
lea edx, [eax + ecx*2]
add esp, 0x40
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
mov ecx, ebp
add ebx, 0x20
call fcn.300e6c17
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx*2]
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.300e6c17
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov eax, 0x10
add ebp, eax
add esp, 0x20
mov dword [esp + 0x30], ebp
add edx, eax
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x50]
add ecx, eax
add ebp, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x301503ad
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x301519c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
shl edi, 0xe
add edi, 0x302eb150
lea esi, [ebx + 4]
mov dword [esp + 0x10], 0
lea ecx, [eax + 8]
sub ebx, eax
mov dword [esp + 0x14], 0x10
lea esp, [esp]
mov eax, dword [ecx - 8]
mov edx, dword [edi + eax*4]
mov dword [esi - 4], edx
mov eax, dword [ecx - 4]
mov edx, dword [edi + eax*4]
mov dword [esi], edx
mov eax, dword [ecx]
mov edx, dword [edi + eax*4]
mov dword [ebx + ecx], edx
mov eax, dword [ecx + 4]
mov eax, dword [edi + eax*4]
mov dword [esi + 8], eax
cdq
mov ebp, eax
mov eax, dword [ebx + ecx]
xor ebp, edx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, dword [esi - 4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add eax, ebp
add ecx, 0x10
add esi, 0x10
dec edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jne 0x301519f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x30153960
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
push edi
push esi
xor ebx, ebx
call dword [0x3036b174]
mov ecx, eax
add ecx, 0x20
add esp, 8
sar ecx, 6
mov dword [esp + 0xc], 2
movzx eax, byte [esi + 7]
sub eax, ecx
cdq
mov ebp, eax
xor ebp, edx
movzx eax, byte [esi + 6]
sub eax, ecx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, ebx
lea ebx, [eax + ebp]
movzx eax, byte [esi + edi + 7]
sub eax, ecx
cdq
mov ebp, eax
movzx eax, byte [esi + edi + 6]
add esi, edi
sub eax, ecx
xor ebp, edx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, ebx
lea ebx, [eax + ebp]
movzx eax, byte [esi + edi + 7]
sub eax, ecx
cdq
mov ebp, eax
movzx eax, byte [esi + edi + 6]
sub eax, ecx
xor ebp, edx
add esi, edi
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, ebx
lea ebx, [eax + ebp]
movzx eax, byte [esi + edi + 7]
add esi, edi
sub eax, ecx
cdq
mov ebp, eax
movzx eax, byte [esi + 6]
xor ebp, edx
sub eax, ecx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
movzx eax, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, ebx
lea ebx, [eax + ebp]
mov eax, dword [esp + 0xc]
add esi, edi
dec eax
mov dword [esp + 0xc], eax
jne 0x30153983
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x30154760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
mov eax, 2
sub eax, edi
mov dword [esp + 0xc], eax
mov eax, 3
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, 4
sub eax, edi
mov dword [esp + 0x14], eax
mov eax, 5
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, 7
sub eax, edi
mov dword [esp + 0x24], eax
mov ebp, 1
mov eax, 6
sub ebp, edi
mov ebx, ecx
sub eax, edi
lea ecx, [ebx + edi + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 8
nop
movzx edx, byte [ebx + 1]
movzx eax, byte [ecx - 1]
add eax, edx
movzx edx, byte [ecx]
add eax, edx
movzx edx, byte [ebx]
lea eax, [eax + edx + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi], al
movzx edx, byte [ecx]
movzx eax, byte [ebx + 1]
add eax, edx
movzx edx, byte [ecx + ebp]
add eax, edx
movzx edx, byte [ecx + 1]
lea eax, [eax + edx + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi + 1], al
mov eax, dword [esp + 0xc]
movzx edx, byte [ecx + eax]
movzx eax, byte [ecx + 2]
add edx, eax
movzx eax, byte [ecx + ebp]
add edx, eax
movzx eax, byte [ecx + 1]
lea eax, [edx + eax + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi + 2], al
movzx edx, byte [ecx + 3]
mov eax, dword [esp + 0xc]
movzx eax, byte [ecx + eax]
add edx, eax
movzx eax, byte [ecx + 2]
add edx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [ecx + eax]
lea eax, [edx + eax + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi + 3], al
movzx edx, byte [ecx + 3]
mov eax, dword [esp + 0x14]
movzx eax, byte [ecx + eax]
add edx, eax
movzx eax, byte [ecx + 4]
add edx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [ecx + eax]
lea eax, [edx + eax + 2]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 2
mov byte [esi + 4], al
movzx eax, byte [ecx + edx]
movzx edx, byte [ecx + 5]
add eax, edx
mov edx, dword [esp + 0x14]
movzx edx, byte [ecx + edx]
add eax, edx
movzx edx, byte [ecx + 4]
lea eax, [eax + edx + 2]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 2
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
movzx edx, byte [ecx + edx]
add eax, edx
movzx edx, byte [ecx + 5]
add eax, edx
mov edx, dword [esp + 0x1c]
movzx edx, byte [ecx + edx]
lea eax, [eax + edx + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi + 6], al
mov eax, dword [esp + 0x24]
movzx edx, byte [ecx + eax]
movzx eax, byte [ecx + 7]
add edx, eax
movzx eax, byte [ecx + 6]
add edx, eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [ecx + eax]
lea eax, [edx + eax + 2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi + 7], al
mov eax, dword [esp + 0x20]
add ebx, edi
add ecx, edi
add esi, edi
dec eax
mov dword [esp + 0x20], eax
jne 0x301547c0
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x3015c940
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
cdq
and edx, 7
push ebx
mov ebx, dword [esp + 0x10]
add eax, edx
push ebp
sar eax, 3
and ecx, 7
test eax, eax
push esi
mov esi, dword [esp + 0x10]
mov ebp, ecx
jle 0x3015c98c
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.30157b70
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov dh, bl
xor eax, ecx
and eax, 0xff
xor edx, dword [eax*4 + 0x3024e8a8]
dec edi
mov ebx, edx
jne 0x3015c966
pop edi
test ebp, ebp
jle 0x3015c9b8
push 1
mov ecx, esi
call fcn.30157b70
mov ecx, ebx
shr ecx, 0xf
and ecx, 1
and ebx, 0x7fff
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x3015c9b5
xor ebx, 0x8005
dec ebp
jne 0x3015c990
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x30161770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
mov eax, dword [ebp + 0x358]
mov ecx, dword [ebp + 0x350]
lea ebx, [esi*4]
lea edx, [ebx + 4]
push edi
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call fcn.300367dc
add esp, 4
test eax, eax
je 0x301617c1
mov dword [eax], esi
lea edx, [eax + 4]
lea eax, [esi - 1]
test eax, eax
jl 0x301617bd
lea ecx, [eax + 1]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
jmp 0x301617c3
xor edi, edi
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [ebp + 0x358], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [ebp + 0x350], esi
dec esi
cmp ecx, eax
mov dword [ebp + 0x348], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
jle 0x30161916
mov edi, edi
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + eax*4]
cmp edi, 1
jbe 0x30161901
mov edx, dword [edi + 0x10]
and dl, 3
cmp dl, 2
jb 0x30161822
mov ecx, edi
call fcn.30165d40
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
and edx, 0x7fffffff
add ecx, 8
xor eax, eax
test edx, edx
je 0x3016184c
mov esi, eax
shl eax, 4
sar esi, 0x1c
xor esi, eax
movzx eax, word [ecx]
xor eax, esi
add ecx, 2
dec edx
jne 0x30161837
mov esi, dword [esp + 0x20]
mov ebx, dword [ebp + 0x358]
and eax, esi
and eax, 0x7fffffff
mov esi, eax
cmp dword [ebx + esi*4], 0
mov eax, 7
je 0x30161880
mov ecx, ebx
lea esp, [esp]
mov edx, dword [esp + 0x20]
add esi, eax
and esi, edx
mov edx, dword [ecx + esi*4]
inc eax
test edx, edx
jne 0x30161870
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x301618c6
cmp eax, 1
je 0x301618c6
mov ecx, dword [eax + 4]
test ecx, 0x40000000
jne 0x301618c6
test ecx, ecx
je 0x301618c6
mov edx, ecx
and edx, 0xff
dec edx
je 0x301618c6
dec ecx
mov dword [eax + 4], ecx
and ecx, 0xff
dec ecx
jne 0x301618c6
push eax
and eax, 0xfffff000
mov ecx, dword [eax]
add ecx, 0x354
call fcn.301adcc0
mov dword [ebx + esi*4], edi
mov eax, dword [edi + 4]
test eax, 0x40000000
jne 0x30161901
test eax, eax
je 0x30161901
inc eax
cmp al, 0xff
mov dword [edi + 4], eax
jne 0x301618e9
or eax, 0x40000000
mov dword [edi + 4], eax
jmp 0x30161901
test eax, eax
jns 0x30161901
push edi
and edi, 0xfffff000
mov ecx, dword [edi]
add ecx, 0x354
call fcn.301acfb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x30161800
mov ecx, dword [esp + 0x18]
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
je 0x30161932
add esp, 0xc
mov dword [esp + 4], 3
jmp fcn.3015fa30
add esp, 0xc
ret 4
Function at 0x30162720
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x344]
mov eax, dword [esi + 0x348]
lea eax, [eax + ecx + 1]
push edi
mov edi, dword [esi + 0x350]
lea edx, [eax + eax*4]
lea eax, [edi*4]
cmp edx, eax
jle 0x3016275d
add ecx, ecx
cmp ecx, edi
mov ecx, esi
jle 0x30162757
shl edi, 1
push edi
call fcn.30161770
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
mov ecx, ebx
je 0x30162785
lea ecx, [ecx]
mov ebp, eax
shl eax, 4
sar ebp, 0x1c
xor ebp, eax
movzx eax, word [ecx]
xor eax, ebp
add ecx, 2
dec edx
jne 0x30162770
mov ecx, dword [esi + 0x348]
dec edi
and eax, edi
and eax, 0x7fffffff
test ecx, ecx
mov ebp, 7
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
jne 0x3016280b
mov edi, dword [esi + 0x358]
lea ebx, [ebx]
mov edx, dword [edi + eax*4]
test edx, edx
je 0x30162896
mov ecx, dword [edx + 8]
mov esi, dword [esp + 0x20]
and ecx, 0x7fffffff
cmp esi, ecx
jne 0x30162800
mov esi, dword [edx + 0xc]
add esi, 8
test ecx, ecx
je 0x30162896
lea edx, [ebx + ecx*2]
sub esi, ebx
nop
mov bx, word [esi + edx - 2]
sub edx, 2
dec ecx
cmp bx, word [edx]
jne 0x301627fc
test ecx, ecx
jne 0x301627e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, ebp
and eax, edx
inc ebp
jmp 0x301627b0
mov ebx, dword [esi + 0x358]
or edi, 0xffffffff
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x3016288f
cmp edx, 1
jne 0x30162836
cmp edi, 0xffffffff
jne 0x30162880
mov edx, dword [esp + 0x10]
mov edi, eax
add eax, ebp
and eax, edx
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x30162814
mov ecx, dword [edx + 8]
mov esi, dword [esp + 0x20]
and ecx, 0x7fffffff
cmp esi, ecx
jne 0x30162880
mov esi, dword [edx + 0xc]
add esi, 8
test ecx, ecx
je 0x30162896
mov ebp, dword [esp + 0x1c]
lea edx, [ebp + ecx*2]
sub esi, ebp
jmp 0x30162860
mov bp, word [esi + edx - 2]
sub edx, 2
dec ecx
cmp bp, word [edx]
jne 0x3016287c
test ecx, ecx
jne 0x30162860
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add eax, ebp
and eax, edx
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x30162814
cmp edi, 0xffffffff
je 0x30162896
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x301663c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
mov ebx, ecx
mov edi, dword [ebx + 8]
push 4
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
push 0xf
push 0x14
mov dword [esp + 0x2c], ebx
and edi, 0x7fffffff
call fcn.301ac6b0
test eax, eax
je 0x301663fd
push edi
mov ecx, eax
call fcn.30165b50
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x30166409
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
and cl, 3
cmp cl, 2
mov byte [esp + 0xf], 0
jb 0x30166420
mov ecx, ebp
call fcn.30165d40
mov edx, dword [ebx + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add esi, 8
and dl, 3
cmp dl, 2
mov dword [esp + 0x14], esi
jb 0x3016643d
mov ecx, ebx
call fcn.30165d40
mov ecx, dword [ebx + 0xc]
add ecx, 8
lea edi, [ecx + edi*2]
cmp ecx, edi
mov dword [esp + 0x20], edi
jae 0x301664fd
xor edx, edx
mov dx, word [ecx]
cmp dx, 0xff
jae 0x30166488
movzx eax, dx
movzx ax, byte [eax + 0x30250490]
xor eax, edx
cmp ax, dx
je 0x30166475
mov byte [esp + 0x13], 1
mov word [esi], ax
add ecx, 2
add esi, 2
cmp ecx, edi
jb 0x30166452
mov dword [esp + 0x14], esi
jmp 0x301664fd
cmp ecx, edi
mov dword [esp + 0x14], esi
jae 0x301664fd
xor ebx, ebx
mov bx, word [ecx]
xor esi, esi
mov edi, 0x2de
movzx ebp, bx
mov dword [esp + 0x1c], ebx
lea eax, [edi + esi]
sar eax, 1
movzx edx, word [eax*2 + 0x30250690]
cmp ebp, edx
je 0x301664c8
jge 0x301664bb
lea edi, [eax - 1]
jmp 0x301664be
lea esi, [eax + 1]
cmp esi, edi
jle 0x301664a3
mov eax, dword [esp + 0x1c]
jmp 0x301664da
mov ax, word [eax*2 + 0x30250c50]
cmp ax, bx
je 0x301664da
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x14]
mov word [edx], ax
mov eax, dword [esp + 0x20]
add edx, 2
add ecx, 2
cmp ecx, eax
mov dword [esp + 0x14], edx
jb 0x30166490
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov esi, edx
mov al, byte [esp + 0x13]
mov word [esi], 0
test al, al
pop esi
mov eax, ebp
jne 0x3016650f
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret