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

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, 0xaaaaaaab
mul ebp
mov ecx, ebp
shr edx, 1
push esi
lea eax, [edx + edx*2]
sub ecx, eax
lea esi, [edx*4]
mov dword [esp + 0xc], esi
sub ecx, 1
je 0x5c3f4f
sub ecx, 1
jne 0x5c3f56
inc esi
add esi, 2
mov dword [esp + 0xc], esi
cmp dword [esp + 0x18], esi
ja 0x5c3f65
pop esi
or eax, 0xffffffff
pop ebp
add esp, 8
ret
push ebx
xor eax, eax
xor esi, esi
push edi
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x5c40b6
mov edx, dword [esp + 0x24]
nop dword [eax + eax]
movzx ecx, byte [edx]
add esi, 8
shl eax, 8
inc edx
dec ebp
mov dword [esp + 0x24], edx
add eax, ecx
cmp esi, 6
jb 0x5c4034
nop word [eax + eax]
sub esi, 6
mov edx, eax
mov ecx, esi
shr edx, cl
and edx, 0x3f
mov dword [esp + 0x28], edx
lea ecx, [edx - 0x1a]
lea ebx, [edx - 0x34]
shr ecx, 8
xor edx, 0x3e
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
neg edx
shr edx, 8
xor ecx, 0x3f
not dl
shr ebx, 8
neg ecx
and dl, 0xfb
shr ecx, 8
not cl
or dl, cl
mov ecx, dword [esp + 0x28]
and edx, 0xffffff2f
mov dword [esp + 0x20], edx
lea edx, [ecx - 0x3e]
sub cl, 4
shr edx, 8
and dl, cl
mov cl, bl
not cl
and dl, cl
mov cl, byte [esp + 0x10]
or byte [esp + 0x20], dl
not cl
mov dl, byte [esp + 0x28]
add dl, 0x47
and dl, cl
mov ecx, dword [esp + 0x20]
and dl, bl
or cl, dl
mov edx, dword [esp + 0x28]
add dl, 0x41
and dl, byte [esp + 0x10]
or cl, dl
mov byte [edi], cl
inc edi
cmp esi, 6
jae 0x5c3fa0
mov edx, dword [esp + 0x24]
test ebp, ebp
jne 0x5c3f80
test esi, esi
je 0x5c40b6
mov ecx, 6
sub ecx, esi
shl eax, cl
and eax, 0x3f
mov edx, eax
xor edx, 0x3e
neg edx
lea ecx, [eax - 0x1a]
shr edx, 8
shr ecx, 8
lea ebx, [eax - 0x34]
mov dword [esp + 0x20], ecx
not dl
mov ecx, eax
shr ebx, 8
xor ecx, 0x3f
and dl, 0xfb
neg ecx
shr ecx, 8
not cl
or dl, cl
lea ecx, [eax - 4]
and edx, 0xffffff2f
mov dword [esp + 0x28], edx
lea edx, [eax - 0x3e]
shr edx, 8
and dl, cl
mov cl, bl
not cl
and dl, cl
mov cl, byte [esp + 0x20]
or byte [esp + 0x28], dl
not cl
lea edx, [eax + 0x47]
add al, 0x41
and al, byte [esp + 0x20]
and dl, cl
mov ecx, dword [esp + 0x28]
and dl, bl
or cl, dl
or cl, al
mov byte [edi], cl
inc edi
mov eax, dword [esp + 0x14]
mov byte [edi], 0
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
Function at 0x5c41c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x814
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x810], eax
mov eax, dword [esp + 0x818]
mov edx, dword [esp + 0x81c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
test eax, eax
je 0x5c43b8
test edx, edx
je 0x5c43b8
push ebx
mov ebx, dword [edx + 0x14]
mov ecx, 0x100
push ebp
mov ebp, dword [edx]
mov eax, ebx
push esi
shl eax, 0xa
push edi
lea esi, [ebp - 0x400]
mov dword [esp + 0x10], eax
add esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [edx + 0x18]
cmp edi, 1
jbe 0x5c4304
mov eax, ebx
imul ecx, ebx, 0xfffffc00
mov ebx, dword [esp + 0x10]
lea esi, [esp + 0x430]
shl eax, 0xb
lea edx, [ebp - 8]
sub esi, eax
add edx, eax
sub esi, ebp
dec edi
mov dword [esp + 0x14], ecx
nop
lea ecx, [esp + 0x20]
xor eax, eax
cmp ecx, edx
ja 0x5c4290
lea ecx, [edx - 0x3f8]
lea ebp, [esp + 0x418]
cmp ebp, ecx
jb 0x5c4290
nop dword [eax + eax]
mov ecx, dword [edx + eax*8 - 0x3f8]
xor dword [esp + eax*8 + 0x20], ecx
mov ecx, dword [edx + eax*8 - 0x3f4]
xor dword [esp + eax*8 + 0x24], ecx
inc eax
cmp eax, 0x80
jl 0x5c4270
jmp 0x5c42f5
lea ecx, [edx - 0x3d8]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax*8 + 0x20]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x20], xmm1
movups xmm0, xmmword [esp + eax*8 + 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [esp + eax*8 + 0x30], xmm1
add eax, 8
movups xmm1, xmmword [ecx + esi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x50], xmm1
movups xmm0, xmmword [ecx + esi - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x40], xmm1
cmp eax, 0x80
jl 0x5c42a0
add esi, dword [esp + 0x14]
add edx, ebx
sub edi, 1
jne 0x5c4250
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x420]
push 0x400
push eax
mov ecx, 0x100
lea esi, [esp + 0x28]
push dword [ebx + 4]
lea edi, [esp + 0x42c]
push dword [ebx]
rep movsd dword es:[edi], dword [esi]
call fcn.005c6f00
mov edi, dword [0x658430]
add esp, 0x10
test edi, edi
je 0x5c436d
mov ecx, 0x400
lea eax, [esp + 0x20]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x5c4347
test edi, edi
je 0x5c436d
mov ecx, 0x400
lea eax, [esp + 0x420]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x5c4362
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
mov edx, dword [edx + 0xc]
shl edx, 0xa
test edi, edi
je 0x5c439b
test esi, esi
je 0x5c439b
mov ecx, edx
mov eax, esi
test edx, edx
je 0x5c439b
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x5c4390
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x5c43ab
push edx
push esi
call eax
add esp, 8
jmp 0x5c43b4
push esi
call fcn.00540e24
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00608a00
add esp, 0x814
ret
Function at 0x5c4990
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x5c49cb
cmp esi, edx
jb 0x5c49cb
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x5c49b4
pop esi
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop dword [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x5c49e0
pop esi
ret
Function at 0x5c6050
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5c6081
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5c6081
push 0
push 0
push dword [esp + 0x18]
push eax
push 0
push 0
call fcn.00547a7e
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x5c7450
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
mov dword [0x662808], 0
lea eax, [esp]
movaps xmmword [esp], xmm0
push eax
movaps xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp]
cmp ax, 6
je 0x5c749c
cmp ax, 9
jne 0x5c74a6
mov dword [0x662808], 1
call fcn.005cc7b0
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
Function at 0x5caff0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x5cb039
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xfff
xor eax, dword [ecx*4 + 0x658650]
xor edx, eax
shr eax, 4
and edx, 0xf
and eax, 0xfff
xor eax, dword [edx*4 + 0x658650]
sub esi, 1
jne 0x5cb000
pop edi
pop esi
ret 8

Function at 0x5cc690
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x18
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
test eax, eax
jns 0x5cc742
call esi
cmp al, 4
jae 0x5cc742
push edi
push 0x14
lea eax, [esp + 0xc]
push eax
push 0x4985d8
push 0x4ac634
push 0x4ac640
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
xor esi, esi
mov edi, 0x658698
nop dword [eax]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5cc6e5
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0061a3b7
add esp, 0xc
test eax, eax
je 0x5cc725
inc esi
add edi, 8
cmp esi, 0x10
jb 0x5cc6e0
pop edi
mov dword [0x66124c], 0x809
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00608a00
add esp, 0x18
ret
mov eax, dword [esi*8 + 0x65869c]
pop edi
mov dword [0x66124c], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00608a00
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x5cc793
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x5cc76c
sub ecx, 1
je 0x5cc78c
sub ecx, 1
jne 0x5cc771
mov eax, 1
shl eax, 0xa
or eax, 4
mov dword [0x66124c], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00608a00
add esp, 0x18
ret
mov eax, 2
jmp 0x5cc771
or ecx, 0x800
mov dword [0x66124c], ecx
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.00608a00
add esp, 0x18
ret
Function at 0x5cd380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, 2
cmp eax, 0xa
ja case.0x5cd3ae.3
jmp dword [eax*4 + 0x5cd4c4]
mov edi, 0x4ac704
jmp case.0x5cd3ae.3
mov edi, 0x4ac73c
jmp 0x5cd3e4
mov edi, 0x4ac73c
jmp case.0x5cd3ae.3
mov edi, 0x4ac774
jmp case.0x5cd3ae.3
mov edi, 0x4ac7a8
jmp 0x5cd3e4
mov edi, 0x4ac7dc
jmp 0x5cd3e4
mov edi, 0x4ac818
mov esi, 3
mov eax, dword [esp + 0x38]
mov edx, 0x20119
mov dword [esp + 0x1c], eax
mov ecx, 0x20019
xor eax, eax
cmp esi, 2
sete al
add eax, reloc.WS2_32.dll_accept
cmp dword [0x662808], 0
cmovne ecx, edx
lea edx, [esp + 0x18]
push edx
push ecx
push 0
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x5cd456
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x5cd4a6
cmp esi, 3
jne 0x5cd4a6
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push 0
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x5cd4a6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
test ebx, ebx
pop ebp
cmove eax, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x18
ret
Function at 0x5cd550
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov ebp, 0x19
xor esi, esi
nop dword [eax]
cmp esi, 6
jge 0x5cd6c1
push 0
push 0x24
push 0
push 0x3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ebx, eax
test ebx, ebx
jne 0x5cd599
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, ebp
inc esi
test ebx, ebx
je 0x5cd570
push 0x40
lea eax, [esp + 0x14]
mov dword [edi + 0x24], 1
push 0
push eax
call fcn.0060a6d0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x24
push eax
push 0x3c
push edi
call fcn.005cd790
test eax, eax
je 0x5cd668
lea ecx, [esp + 0x30]
xor edx, edx
lea esi, [edi + 0x74]
mov ebx, ecx
lea eax, [esi + 0x1f]
cmp ebx, eax
ja 0x5cd600
lea eax, [esp + 0x4f]
cmp eax, esi
jb 0x5cd600
mov al, byte [esi + edx]
lea ecx, [ecx + 1]
add byte [ecx - 1], al
inc edx
cmp edx, 0x20
jl 0x5cd5e7
jmp 0x5cd61a
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x10]
movups xmm1, xmmword [esi + edx]
add edx, 0x10
paddb xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp edx, 0x20
jl 0x5cd600
mov eax, dword [esp + 0x2e]
lea edx, [esp + 0x30]
add eax, dword [esp + 0x2c]
mov esi, 0x20
movzx eax, ax
nop
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub esi, 1
jne 0x5cd630
cmp dword [esp + 0x4c], esi
je 0x5cd688
mov dword [0x6587a4], 0x65
cmp dword [edi + 0x24], 0
je 0x5cd6cb
push 0
push 0x24
push 0
push 0x3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [edi + 0x24], 0
jmp 0x5cd6cb
movzx eax, word [esp + 0x32]
mov dword [edi + 0x40], eax
movzx eax, word [esp + 0x34]
mov dword [edi + 0x44], eax
mov al, byte [esp + 0x36]
mov byte [edi + 0x50], al
movzx eax, word [esp + 0x30]
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00608a00
add esp, 0x44
ret 4
mov dword [0x6587a4], 0x64
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x44
ret 4

Function at 0x5cd6f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x10]
push esi
push ebx
push dword [esp + 0x1c]
push edi
call fcn.005cd790
test eax, eax
je 0x5cd779
xor edx, edx
mov ecx, ebx
test esi, esi
je 0x5cd768
mov eax, edx
lea ecx, [ecx + 1]
and eax, 0x1f
inc edx
mov al, byte [eax + edi + 0x74]
add byte [ecx - 1], al
cmp edx, esi
jb 0x5cd717
mov ecx, dword [edi + 0x30]
mov edx, ebx
mov eax, ecx
mov edi, esi
shr eax, 0x10
add eax, ecx
movzx eax, ax
nop dword [eax]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub edi, 1
jne 0x5cd740
cmp dword [ebx + esi - 4], 0
je 0x5cd781
mov dword [0x6587a4], 0x65
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
Function at 0x5cd790
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5cd7da
pop edi
mov dword [0x6587a4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5cd814
cmp dword [esp + 0xc], esi
jne 0x5cd814
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x6587a4], 0x62
call fcn.00608a00
add esp, 8
ret 0x10

Function at 0x5cd840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x14]
lea edx, [ecx + 0x18]
push edi
mov edi, 0x18
movzx eax, word [esi + 0x40]
mov word [ebx], ax
movzx eax, word [esi + 0x44]
mov word [ecx + 0x16], ax
movzx eax, word [esi + 0x54]
mov word [edx], ax
movzx eax, word [esi + 0x44]
add ax, word [esi + 0x40]
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub edi, 1
jne 0x5cd885
mov eax, dword [esi + 0x60]
push 0x1c
push ebx
add eax, 0x14
push eax
push esi
call fcn.005cf0a0
test eax, eax
je 0x5cd8fc
mov al, 0xfa
cmp dword [esi + 0x6c], edi
jne 0x5cd8cb
mov al, byte [esi + 0x50]
push 1
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x5c]
push esi
call fcn.005cf0a0
test eax, eax
je 0x5cd8fc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 8
Function at 0x5cd920
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x40
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0xb]
push esi
mov esi, dword [esp + 0x50]
push edi
push 1
push eax
push dword [esi + 0x5c]
push esi
call fcn.005cd790
test eax, eax
je 0x5cdaf0
cmp byte [esp + 0x13], 0xfa
ja 0x5cdae6
push 0x38
xor edi, edi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.0060a6d0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1d
push eax
mov eax, dword [esi + 0x60]
add eax, 0x14
push eax
push esi
call fcn.005cd790
test eax, eax
je 0x5cdaf0
mov eax, dword [esp + 0x2a]
lea edx, [esp + 0x2c]
add eax, dword [esp + 0x28]
lea ebx, [edi + 0x18]
movzx eax, ax
nop dword [eax]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub ebx, 1
jne 0x5cd9a0
cmp dword [esp + 0x40], edi
je 0x5cd9dd
mov dword [0x6587a4], 0x65
jmp 0x5cdaf0
mov ax, word [esp + 0x2c]
cmp ax, word [esi + 0x54]
jne 0x5cdae6
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x5cd9fb
push eax
call fcn.005d1790
mov edi, eax
test ebp, ebp
je 0x5cda5e
test edi, edi
je 0x5cda5e
cmp dword [edi + 0x10], 1
jne 0x5cda5e
cmp byte [esp + 0x13], 0xfa
jae 0x5cda5e
mov al, byte [esp + 0x44]
test al, al
jne 0x5cda3d
test byte [edi + 0x28], 0x80
jne 0x5cda3d
push dword [edi + 0x34]
mov eax, dword [esi + 0x64]
push dword [edi + 0x2c]
add eax, dword [esi + 0x60]
push eax
push esi
call fcn.005cd790
test eax, eax
je 0x5cdaf0
mov al, byte [esp + 0x44]
movzx eax, al
xor ecx, ecx
test eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 2
sete cl
mov dword [edi + 0x18], ecx
mov dword [esi + 0x6c], 0
mov dword [ebp], edi
mov edx, dword [esp + 0x58]
test edx, edx
je 0x5cdacc
mov edi, dword [esi + 0x3c]
xor ecx, ecx
mov ebx, dword [esi + 0x44]
cmp edi, ebx
jbe 0x5cda86
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x38]
jbe 0x5cda8a
mov ecx, ebx
sub ecx, edi
add ecx, 0xa8c0
jmp 0x5cda8a
mov ecx, ebx
sub ecx, edi
lea eax, [ecx + ecx]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov eax, 0xffff
cmp ecx, 0xffff
jg 0x5cdaa4
movzx eax, cx
cmp eax, edx
jae 0x5cdac5
sub edx, eax
mov eax, edx
xor edx, edx
div dword [esi + 0x34]
mov dword [esi + 0x14], eax
cmp eax, 1
jbe 0x5cdacc
mov dword [0x6587a4], 0x63
jmp 0x5cdaf0
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00608a00
add esp, 0x40
ret 0xc
mov dword [0x6587a4], 0x67
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x40
ret 0xc
Function at 0x5cf0a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5cf0ea
pop edi
mov dword [0x6587a4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5cf124
cmp dword [esp + 0xc], esi
jne 0x5cf124
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x6587a4], 0x61
call fcn.00608a00
add esp, 8
ret 0x10

Function at 0x5cf150
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0060a6d0
add esp, 0xc
lea eax, [esp + 0xc]
push 0xff
push eax
push 0x4aa080
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x5cf2cb
cmp esi, 0x20
jae 0x5cf2cb
mov ecx, 0x4aa08c
lea eax, [esp + 0xc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5cf1d0
test dl, dl
je 0x5cf1cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5cf1d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5cf1b0
xor eax, eax
jmp 0x5cf1d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x5cf2cb
mov ecx, 0x4aa094
lea eax, [esp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5cf206
test dl, dl
je 0x5cf202
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5cf206
add eax, 2
add ecx, 2
test dl, dl
jne 0x5cf1e6
xor eax, eax
jmp 0x5cf20b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5cf2cb
push 8
lea eax, [esp + 0x10]
push 0x4aa0a4
push eax
call fcn.00544470
add esp, 0xc
test eax, eax
jne 0x5cf288
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
lea eax, [esp + 0x10]
push 0x4aa0b0
push eax
call fcn.00588890
add esp, 0xc
cmp eax, 1
jne 0x5cf267
mov eax, dword [esp + 8]
inc eax
and eax, 0x800000ff
jns 0x5cf25e
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x658820]
jmp 0x5cf2a6
xor edx, edx
test esi, esi
je 0x5cf2ad
nop dword [eax]
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x658820]
cmp edx, esi
jb 0x5cf270
jmp 0x5cf2a6
xor edx, edx
test esi, esi
je 0x5cf2ad
nop
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x658820]
cmp edx, esi
jb 0x5cf290
xor eax, eax
cmp ax, bx
jne 0x5cf2b2
mov ebx, 0xff
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00608a00
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x108
ret