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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x577cc4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x577cb3
jg 0x577c28
test edx, edx
je 0x577cb3
call fcn.00458180
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x577c78
jg 0x577c3e
test esi, esi
je 0x577c78
cmp ebx, eax
jg 0x577c4d
jl 0x577c48
cmp edi, esi
jae 0x577c4d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00520f60
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x577c9a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x577cad
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x577c28
jl 0x577cad
test edi, edi
jne 0x577c28
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x577ce3
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x577ce5
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x577d8d
jg 0x577cff
test esi, esi
je 0x577d8d
test eax, eax
jl 0x577d3e
jg 0x577d09
test ebx, ebx
je 0x577d3e
cmp edi, eax
jg 0x577d18
jl 0x577d13
cmp esi, ebx
jae 0x577d18
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00520f60
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x577d44
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x577d8d
jg 0x577d4e
test esi, esi
je 0x577d8d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x577d8d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x577d79
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005c90b0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x577da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x577e6e
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x577e5d
jg 0x577dd8
test edx, edx
je 0x577e5d
call fcn.004589d0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x577e26
jg 0x577dee
test esi, esi
je 0x577e26
cmp ebx, eax
jg 0x577dfd
jl 0x577df8
cmp edi, esi
jae 0x577dfd
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00520f60
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x577e4a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x577e57
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x577dd8
jl 0x577e57
test edi, edi
jne 0x577dd8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x577e8d
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x577e8f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x577f08
jg 0x577ea1
test esi, esi
je 0x577f08
test eax, eax
jl 0x577ee2
jg 0x577eab
test ebx, ebx
je 0x577ee2
cmp edi, eax
jg 0x577eba
jl 0x577eb5
cmp esi, ebx
jae 0x577eba
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00520f60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x577ee5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x577f08
jg 0x577eef
test esi, esi
je 0x577f08
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x577f08
push eax
push esi
push 1
push edx
call fcn.005c97ce
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a3e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005a4460
add esp, 8
test al, al
je 0x5a3e75
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5a3e75
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5a4460
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5a5910
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a593b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a593b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x5a6f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x5a6f30
mov esi, dword [esi]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00520870
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00520870
push esi
push 0x621e44
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040d390
add esp, 0x28
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x210]
push eax
push 0x5e8ab0
push 0x621e4c
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040d390
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00520870
lea eax, [ebp - 0x210]
push eax
push str.SoftwareClasses_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0040d390
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push eax
push SysReAllocString
call fcn.005a8530
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.00520870
add esp, 0x48
lea eax, [ebp - 0x210]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea eax, [ebp - 0x834]
push 0x104
push eax
call fcn.0040d390
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x834]
push eax
push SysReAllocString
call fcn.005a8530
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.005a7d80
push 0x104
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.00520870
add esp, 0x30
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0x104
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x840]
push eax
push str.ProgId
push dword [ebp - 0x838]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edx, dword [ebp - 0x838]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5a70d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
test bl, bl
pop ebx
jne 0x5a70f2
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005a74b0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465208
mov esp, ebp
pop ebp
ret 4
Function at 0x5a8230
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x21c], ebx
call fcn.00520870
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5e6574
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x5a82c2
push 0x5e6574
push edi
push esi
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00520870
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.BiscuitZip_bak
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x5a8354
cmp word [ebp - 0x210], 0
je 0x5a834b
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push 1
push 0x5e6574
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.BiscuitZip_bak
push edi
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465208
mov esp, ebp
pop ebp
ret

Function at 0x5a8530
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x20a
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.00520870
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5e6574
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x21c], eax
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5a85b0
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push 0x5e6574
push ebx
push edi
call esi
cmp dword [ebp - 0x21c], 0
jne 0x5a8616
cmp word [ebp - 0x210], 0
je 0x5a8616
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x5a8616
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push 1
push str.BiscuitZip_bak
push ebx
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465208
mov esp, ebp
pop ebp
ret
Function at 0x5a8da0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00520870
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5e8ab0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5a8e0e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00520870
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.config.ini
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
push 0x5ef3e4
push str.linkA
push str.LinkType
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465208
mov esp, ebp
pop ebp
ret
Function at 0x5aac00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x68
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x9c]
push 0
push eax
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xc], xmm0
call fcn.00520870
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00437cc0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push esi
push edi
push eax
call fcn.00437d10
lea eax, [ebp - 0x9c]
push eax
call fcn.004379f0
movups xmm0, xmmword [ebp - 0x44]
push 0x20
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0xc4], xmm0
push esi
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.005c6830
push 0x400
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.00520870
mov eax, esi
add esp, 0x40
and al, 4
cmp al, 1
sbb eax, eax
shr esi, 2
neg eax
lea ebx, [esi - 1]
add ebx, eax
cmp ebx, 1
jbe 0x5aae06
test bl, 1
jne 0x5aae06
lea ecx, [ebp - 0x4c4]
dec eax
push ecx
lea ecx, [ebp - 0xc4]
add eax, esi
push ecx
push eax
push edi
call fcn.005aa850
add esp, 0x10
test al, al
je 0x5aae06
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005aaa10
add esp, 0x10
test al, al
je 0x5aae06
mov eax, dword [ebp - 0x4c4]
xor eax, dword [ebp - 0x4bc]
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c0]
xor eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
add edi, 4
mov dl, byte [ebp + eax - 0x14]
lea ecx, [eax + 1]
cmp ecx, 8
jb 0x5aad54
xor bh, bh
jmp 0x5aad58
mov bh, byte [ebp + eax - 0x13]
cmp ecx, 8
sbb ecx, ecx
neg ecx
inc ecx
add eax, ecx
cmp eax, 8
jb 0x5aad6b
xor bl, bl
jmp 0x5aad70
mov bl, byte [ebp + eax - 0x14]
inc eax
movzx edx, dl
mov ecx, edx
movzx esi, bh
shr ecx, 2
and edx, 3
shl edx, 4
movzx ecx, word [ecx*2 + 0x622270]
mov word [edi - 4], cx
mov ecx, esi
shr ecx, 4
and esi, 0xf
or ecx, edx
shl esi, 2
movzx edx, bl
mov ebx, dword [ebp - 0xa0]
add ebx, 4
movzx ecx, word [ecx*2 + 0x622270]
mov word [edi - 2], cx
mov ecx, edx
shr ecx, 6
and edx, 0x3f
or esi, ecx
mov dword [ebp - 0xa0], ebx
movzx ecx, word [esi*2 + 0x622270]
mov word [edi], cx
movzx ecx, word [edx*2 + 0x622270]
mov word [edi + 2], cx
add edi, 8
cmp eax, 8
jb 0x5aad44
mov eax, dword [ebp - 0xa4]
pop edi
pop esi
mov dword [eax + ebx*2 - 2], 0x3d
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465208
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465208
mov esp, ebp
pop ebp
ret
Function at 0x5c6540
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x64f494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x5c6708
test eax, eax
je 0x5c6708
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x5c6708
push ecx
push ebx
push eax
call fcn.00520870
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x5c6708
cmp edi, 0xffffffff
je 0x5c6701
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00437cc0
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5c6701
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x5c6697
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x5c6701
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x5c6697
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x5c6630
cmp edi, esi
jae 0x5c6697
nop
sub esi, edi
sbb ecx, eax
js 0x5c6645
jg 0x5c6640
cmp esi, 0x400000
jb 0x5c6645
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x5c6697
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00437d10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x5c668b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x5c6630
jg 0x5c6697
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x5c6630
lea eax, [ebp - 0x6c]
push eax
call fcn.004379f0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x6240d4
push 3
push edi
call fcn.0045a100
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x5c66b0
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.005cc0cd
add esp, 8
mov esi, 1
test ebx, ebx
je 0x5c66ed
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5c66fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465208
mov esp, ebp
pop ebp
ret
Function at 0x10004c30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x10004c7f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10004c54
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10004c91
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10004ca5
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x10004ceb
xor ecx, ecx
cmp edi, 0x100
jb 0x10004cc8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x100055a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x100055ec
jle 0x100055e7
cmp eax, 3
jg 0x100055e7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x100055de
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x100055cc
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10023657
mov eax, 1
ret 0x10

Function at 0x10005b60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x10005bac
jle 0x10005ba7
cmp eax, 3
jg 0x10005ba7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10005b9e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10005b8c
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10006a50
mov eax, 1
ret 0x10