joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527e00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005bc520
push ebx
push esi
push edi
lea eax, [esp + 0x14]
xor esi, esi
push eax
lea eax, [esp + 0x10]
xor edi, edi
push eax
push esi
call fcn.00514840
add esp, 0xc
test eax, eax
je 0x528009
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
shl eax, 0xa
test ebx, eax
je 0x527e3c
inc edi
lea eax, [esp + 0x14]
inc esi
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00514840
add esp, 0xc
test eax, eax
jne 0x527e30
test edi, edi
je 0x528009
mov ecx, dword [esp + 0x50]
mov eax, ecx
cdq
idiv edi
push ebp
mov ebp, dword [esp + 0x58]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], esi
cmp edi, 1
mov edi, dword [esp + 0x60]
push edi
push eax
cmove ecx, eax
push ebp
mov dword [esp + 0x60], ecx
call fcn.005bc550
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00514840
add esp, 0x18
test eax, eax
je 0x527fd4
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x527fb0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x527fe1
push edi
push ebx
push dword [esp + 0x54]
mov eax, dword [esp + 0x60]
push dword [esp + 0x54]
and eax, 1
push dword [esp + 0x54]
add eax, esi
mov esi, dword [esp + 0x64]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push eax
push esi
push ecx
call fcn.00528030
add esp, 0x3c
test eax, eax
je 0x527fff
add esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x527fac
cmp edi, 0x20
jb 0x527f91
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x527f40
cmp edx, ebx
jae 0x527f91
mov eax, edi
and eax, 0x8000001f
jns 0x527f4e
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
jmp 0x527f60
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x527f60
cmp ecx, edi
jge 0x527fac
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x527fa0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00514840
add esp, 0xc
test eax, eax
jne 0x527eb0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
push 0x114
push 0x61e8b0
push 0x146
push 0x11c
push 0x14
call fcn.00530c60
add esp, 0x14
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x109
push 0x61e8b0
push 0x44
push 0x11c
push 0x14
call fcn.00530c60
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x52f560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x52f585
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x52f576
pop edi
movzx eax, dl
pop esi
ret

Function at 0x52f820
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x52f8a7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x52f8a7
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.005c360d
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.005c360d
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.0052f6e0
test eax, eax
jle 0x52f92b
push 0x61f020
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x52f93f
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x108
ret
push 0x10
push 0x61f028
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.005ba7b4
add esp, 0x108
ret

Function at 0x537290
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.005315a0
add esp, 8
test esi, esi
jg 0x5372e7
je 0x5372c9
cmp esi, 0xffffffff
jne 0x5372e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005374e0
add esp, 4
test eax, eax
je 0x5372e7
push 0xa
push edi
call fcn.00531cb0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5429a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00539bf0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00539a50
add esp, 0xc
test eax, eax
je 0x542aa2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00539730
add esp, 0xc
test eax, eax
je 0x542aa2
lea eax, [esp + 0x20]
push eax
call fcn.00539990
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x542ac0
push edi
call fcn.0053ad10
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00542f80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x542aa2
push esi
call fcn.00543800
add esp, 4
test eax, eax
jle 0x542aa2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00542d20
add esp, 0x18
test eax, eax
jle 0x542aa2
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.00543710
add esp, 0x14
test eax, eax
jle 0x542aa2
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.00542f10
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x542ad8
cmp dword [edi], edx
je 0x542b02
inc eax
add ecx, 4
cmp eax, 4
jl 0x542ac5
push 0x7b
push 0x631f94
push 0x6e
push 0x6b
push 6
call fcn.00530c60
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x542b36
push 0x80
push 0x631f94
push 0x68
push 0x6b
push 6
call fcn.00530c60
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ba7b4
add esp, 0x6c
ret
Function at 0x545d50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x545db6
cmp edi, dword [esi]
je 0x545dad
test ebp, ebp
je 0x545e30
test ebx, ebx
js 0x545e30
mov eax, 1
mov dword [esi], edi
jmp 0x545dbc
mov edi, dword [esi]
test edi, edi
je 0x545e30
test ebp, ebp
je 0x545f4b
push edi
call fcn.00544250
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x545df0
push 0x632070
push 0x74
push 0x63208c
call fcn.0052f960
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x545e4b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.005397d0
add esp, 0xc
test eax, eax
je 0x545e30
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.00539980
add esp, 0xc
test eax, eax
je 0x545e30
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00539730
add esp, 0xc
test eax, eax
jne 0x545e67
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ba7b4
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x545e30
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.005bac20
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x545e8a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.005bc550
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x545e90
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.005397d0
add esp, 0xc
test eax, eax
je 0x545e30
push edi
call fcn.00544250
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00539980
add esp, 0x10
test eax, eax
je 0x545e30
xor ecx, ecx
jmp 0x545ee0
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x545ee0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.005397d0
add esp, 0xc
test eax, eax
je 0x545e30
push edi
call fcn.00544250
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00539980
add esp, 0x10
test eax, eax
je 0x545e30
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00539a50
add esp, 8
test eax, eax
je 0x545e30
mov eax, 1
jmp 0x545e32
test eax, eax
je 0x545f29
jmp 0x545e8e
Function at 0x54a530
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.0054a630
mov edi, eax
add esp, 8
test edi, edi
jne 0x54a5d6
push 0xaf
push 0x636f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00530c60
push 0x61d7f8
push esi
push 0x636f48
push dword [esp + 0x2c]
push 0x636f4c
push 5
call fcn.005303c0
add esp, 0x2c
call fcn.005c3ac5
cmp dword [eax], 2
je 0x54a5b6
call fcn.005c3ac5
cmp dword [eax], 6
je 0x54a5b6
push 0xb8
push 0x636f30
push 2
push 0x6d
push 0x20
call fcn.00530c60
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push 0x636f30
push 0x80
push 0x6d
push 0x20
call fcn.00530c60
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x685894
call fcn.00531980
mov esi, eax
add esp, 4
test esi, esi
jne 0x54a5f7
push edi
call fcn.005bbfff
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.005315a0
push edi
push 1
push 0x6a
push esi
call fcn.005315d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x552110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
mov dword [esp + 0x20], ebp
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x2c], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x30], dl
test eax, eax
je 0x5522d3
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x552267
push 1
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.00402280
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
inc ebp
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], dl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x552200
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x5522ba
mov eax, dword [esp + 0x24]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ebp], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [ebp + 2], bl
shr eax, 8
mov byte [ebp + 3], dl
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ba7b4
add esp, 0x28
ret
Function at 0x552dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
push ebx
push ebp
movzx ebx, byte [eax]
push esi
push edi
lea edi, [eax + 1]
mov ebp, dword [esp + 0x60]
mov edx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov esi, dword [ebp]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x34], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x35], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x38], dl
test eax, eax
je 0x552f9d
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
lea ebx, [ebx]
dec eax
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x552f2d
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.004023e0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
xor al, byte [ebp]
and esi, 7
mov byte [ecx + ebp], al
inc ebp
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x552ec0
test edi, edi
mov edi, dword [esp + 0x24]
je 0x552f84
mov eax, dword [esp + 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ba7b4
add esp, 0x30
ret
Function at 0x554220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x5543e5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x554375
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.00553850
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x554310
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x5543cc
mov ecx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ba7b4
add esp, 0x28
ret
Function at 0x554740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, 0x80
mov byte [ebx], 0
cmp eax, edi
cmovg eax, edi
test ebp, ebp
jg 0x554768
mov ebp, 0x400
jmp 0x554772
mov ecx, 0x400
cmp ebp, ecx
cmovg ebp, ecx
test eax, eax
jle 0x554792
sub dword [esp + 0x1c], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov cl, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
dec esi
jne 0x554782
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x5547c0
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x642478]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x5547a2
lea eax, [ebp + 7]
mov edx, 0xff
sar eax, 3
neg ebp
sub edi, eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
and ebp, 7
mov ecx, ebp
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x642478]
mov byte [esi], cl
test edi, edi
je 0x55480a
mov edx, dword [esp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x642478]
mov byte [esi], cl
dec edi
jne 0x5547f4
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x554820
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
and ecx, 0xffff
mov dword [esi + 4], ecx
dec edi
jne 0x554820
pop edi
pop esi
pop ebp
pop ebx
ret