joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b06fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x60a038]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b0741
cmp word [ebx], dx
jne 0x4b0741
or byte [eax + edi + 0x28], 4
jmp 0x4b0746
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4b08a9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4b0889
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b0787
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b07bd
cmp eax, edx
jae 0x4b07cb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4b0762
jmp 0x4b08a9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0884
cmp dword [ebp - 0x18], 0
je 0x4b0884
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x60a038]
test byte [eax + edi + 0x28], 0x48
je 0x4b085a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4b081e
mov word [esi], cx
jmp 0x4b0855
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x60a038]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x60a038]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x60a038]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b08a9
pop eax
cmp word [ebp - 4], ax
jne 0x4b086a
cmp esi, ebx
jne 0x4b086a
mov word [esi], ax
jmp 0x4b08a6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b1134
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b08a9
push 0xd
pop eax
jmp 0x4b0865
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x60a038]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b08a3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b08a9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b40fc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x605580]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b4147
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b4297
test al, al
jne 0x4b4141
sub edx, 2
cmp edx, edi
jne 0x4b4127
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b4169
lea eax, [edi + 2]
cmp edx, eax
je 0x4b4169
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b4048
add esp, 0x10
jmp 0x4b4263
push esi
lea ecx, [ebp - 0x255]
call fcn.004b4297
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b41ac
push dword [ebp - 0x25c]
jmp 0x4b4159
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b41e9
cmp word [ebp - 0x226], 0
je 0x4b420a
cmp word [ebp - 0x226], ax
jne 0x4b41e9
cmp word [ebp - 0x224], 0
je 0x4b420a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b4048
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b4256
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b41c3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b423e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b4263
push 0x4b3e78
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bb310
add esp, 0x10
jmp 0x4b4233
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004883ab
leave
ret
Function at 0x4b4b79
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4b4c16
push ebx
push esi
call fcn.004b4b42
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004b3d9d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b4bc3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b4c15
push edi
push eax
call fcn.004ad00e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b4be3
call fcn.004ac342
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b4c14
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b3d9d
add esp, 0x20
test eax, eax
jne 0x4b4c02
push edi
call fcn.004ac342
jmp 0x4b4c0a
push ebx
call fcn.004ac342
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4b4c19
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b4c2a
pop esi
ret
push ebx
push edi
push esi
call fcn.004b4b42
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ad00e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b4c52
push ebx
push esi
push edi
call fcn.00492730
add esp, 0xc
push 0
call fcn.004ac342
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b53ac
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4ec7

Function at 0x4b77fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ac6ba
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b786b
cmp esi, dword [ebp - 4]
je 0x4b7866
cmp dword [ebp + 0xc], 0
je 0x4b7866
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b7843
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b734e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b786d
xor eax, eax
inc eax
jmp 0x4b786d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b78d2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x605580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ac6ba
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ac6ba
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b7949
cmp word [ecx], dx
je 0x4b7949
mov eax, dword [0x5a46e4]
push edi
dec eax
push eax
push 0x5a45d0
call fcn.004b7871
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b79bc
cmp word [eax], dx
je 0x4b79bc
mov eax, dword [edi]
test eax, eax
je 0x4b796d
cmp word [eax], dx
je 0x4b796d
lea eax, [ebp - 0x10]
push eax
call fcn.004b7254
jmp 0x4b7976
lea eax, [ebp - 0x10]
push eax
call fcn.004b72ef
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b79e6
mov eax, dword [0x5a45cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5a42c0
call fcn.004b7871
add esp, 0xc
test al, al
je 0x4b79e6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b79b1
cmp word [eax], di
je 0x4b79b1
lea eax, [ebp - 0x10]
push eax
call fcn.004b7254
pop ecx
jmp 0x4b79e8
lea eax, [ebp - 0x10]
push eax
call fcn.004b72ef
jmp 0x4b79ae
mov eax, dword [edi]
test eax, eax
je 0x4b79d3
cmp word [eax], dx
je 0x4b79d3
lea eax, [ebp - 0x10]
push eax
call fcn.004b7209
pop ecx
jmp 0x4b79e6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b7ab1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b76f6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b7ab1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b7ab1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b7ab1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b7a3e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004afc34
test ebx, ebx
je 0x4b7aac
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004afc34
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b7ab1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b7ab1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bbc30
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b7ab3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004883ab
leave
ret
Function at 0x4bc285
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bc201
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bc3f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bc3f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bc3a9
jg 0x4bc2e1
test eax, eax
je 0x4bc39f
push 1
push 0x1000
call fcn.004af5a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bc304
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bc396
push 0x8000
push ebx
call fcn.004a9c6b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bc32d
jg 0x4bc328
cmp ecx, 0x1000
jb 0x4bc32d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004aee40
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bc372
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bc328
jl 0x4bc359
test ecx, ecx
jne 0x4bc31a
push dword [ebp - 0xc]
push ebx
call fcn.004a9c6b
push esi
call fcn.004ac342
add esp, 0xc
xor ebx, ebx
jmp 0x4bc402
cmp byte [edi + 0x24], 0
je 0x4bc389
cmp dword [edi + 0x20], 5
jne 0x4bc389
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bc394
mov ebx, dword [edi + 0x18]
jmp 0x4bc396
xor ebx, ebx
push esi
call fcn.004ac342
pop ecx
jmp 0x4bc402
test ecx, ecx
jg 0x4bc36b
jl 0x4bc3a9
test eax, eax
jae 0x4bc36b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b1134
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bc3c9
cmp byte [edi + 0x1c], 0
je 0x4bc36b
jmp 0x4bc3fa
push ebx
call fcn.004b57cd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bc36b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bc402
cmp byte [edi + 0x1c], 0
je 0x4bc3ff
mov ebx, dword [edi + 0x18]
jmp 0x4bc402
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b1134
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c2530
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.004da7f0
push 0x62
push edi
mov ebx, eax
call fcn.00492ec0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x4c25d0
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004bdd70
push 0x5a84e0
push edi
push 0x5a84e4
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.004bd360
add esp, 0x2c
call fcn.004a280f
cmp dword [eax], 2
je 0x4c25ad
call fcn.004a280f
cmp dword [eax], 6
je 0x4c25ad
lea eax, [ebx + 2]
lea ecx, [ebx + 0x51]
jmp 0x4c25b7
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.004bdd70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5a8488
call fcn.004c2dd0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c25f2
push ebx
call fcn.004a30aa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.004c2750
push ebx
push esi
push 0x6a
push edi
call fcn.004c2780
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4c6e00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x4c6f27
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4c6f27
push esi
push edi
cmp ecx, 4
jb 0x4c6f01
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x4c6ea0
cmp edi, edx
jae 0x4c6f01
cmp esi, ebx
ja 0x4c6ea8
cmp edi, ebx
jae 0x4c6f01
cmp esi, ebp
ja 0x4c6eb0
cmp edi, ebp
jae 0x4c6f01
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x4c6ebe
cmp edi, ebx
jae 0x4c6f01
cmp edx, ebp
ja 0x4c6ec6
cmp edi, ebp
jae 0x4c6f01
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x4c6ed0
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x4c6f25
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x4c6f01
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4cae30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x4cae76
mov al, byte [esi]
test al, al
je 0x4cae76
push edi
mov edi, 0x100
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor cl, al
imul eax, eax
and cl, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x4cae47
mov eax, edx
pop edi
shr eax, 0x10
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4d2490
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x84], 0xffffffff
jne 0x4d24a2
xor eax, eax
pop ebx
ret
push ebp
push esi
push dword [ebx]
call fcn.004be3f0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x4d2556
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x4d24f6
test esi, esi
jle 0x4d2534
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x4d24e0
jmp 0x4d2534
sub eax, ecx
mov byte [ecx + ebx + 0x64], 0x80
cmp eax, 1
jle 0x4d2514
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.00492cb0
add esp, 0xc
test esi, esi
jle 0x4d2534
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x4d2520
push esi
push ebp
push ebp
push dword [ebx]
call fcn.004be9c0
add esp, 0x10
pop edi
test eax, eax
jne 0x4d2556
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4e1af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.00488be0
mov eax, dword [0x605580]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
movzx ecx, byte [edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x54]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x3f], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x42], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x43], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], al
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], al
test ebp, ebp
je 0x4e1cb1
mov edi, dword [esp + 0x4c]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x4e1c56
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
call fcn.004025a0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], bl
mov byte [esp + 0x43], al
mov dword [esp + 0x14], edx
jmp 0x4e1c5a
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x3c]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x4e1be3
test edx, edx
je 0x4e1cb1
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004883ab
add esp, 0x38
ret
Function at 0x511b10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x511b5f
cmp edx, esi
jb 0x511b5f
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x511b40
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x511b70
pop esi
pop ebx
ret