joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59d880
Capabilities:
Check if file exists
Get common file path
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff92c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x130]
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0x104
mov dword [ebp - 0x120], 0x104
movq qword [ebp - 0x130], xmm0
mov dword [ebp - 0x128], 0
call fcn.005dc5e0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.005db9a0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x130]
call fcn.005dc190
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x59da05
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x59da05
push dword [ebp - 0x138]
mov ecx, ebx
call fcn.005dc510
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x59d9fa
mov edx, esi
mov ecx, edi
call fcn.0059cd90
test al, al
jne 0x59d9fa
mov ecx, ebx
call fcn.005dc190
mov edx, esi
mov ecx, eax
call fcn.0059cca0
test al, al
jne 0x59d9fa
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x104
push eax
push 0
push 0
push 0x104
mov ecx, esi
call fcn.005db9a0
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x59da05
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x624284
mov ecx, esi
call fcn.005da780
mov ecx, esi
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59d9fe
mov bl, 1
jmp 0x59da07
mov ecx, esi
call fcn.005dc400
xor bl, bl
lea ecx, [ebp - 0x130]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x59f1d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffc2a
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x298], ebx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.005dc570
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.005dc3a0
test eax, eax
jne 0x59f251
push esi
lea ecx, [ebp - 0x20]
call fcn.005dc510
push 1
lea ecx, [ebp - 0x20]
call fcn.005dbf40
cmp byte [eax + 8], 0
je 0x59f28d
mov ecx, esi
call fcn.005e1200
lea ecx, [ebp - 0x20]
test al, al
jne 0x59f27b
push esi
call fcn.005dc190
mov edx, eax
mov ecx, ebx
call fcn.005a3c40
add esp, 4
test eax, eax
sete bl
jmp 0x59f3f3
call fcn.005dc190
mov edx, eax
mov ecx, ebx
call fcn.005a3c00
test eax, eax
je 0x59f294
xor bl, bl
jmp 0x59f3f3
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
sub esp, 8
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push esi
call fcn.005dc520
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x44]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x59f31e
xor bl, bl
jmp 0x59f3db
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0x6287bc
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc200
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0x624284
push esi
lea ecx, [ebp - 0x38]
call fcn.005dc200
test byte [ebp - 0x294], 0x10
je 0x59f396
lea ecx, [ebp - 0x268]
call fcn.005e5150
test al, al
jne 0x59f3bc
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x38]
call fcn.005dc190
mov edx, dword [ebp - 0x298]
mov ecx, eax
call fcn.0059f1d0
test al, al
jne 0x59f3bc
push 1
call edi
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x59f328
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x20]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x59f440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffc61
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59f558
mov ecx, edi
call fcn.005e1200
test al, al
jne 0x59f4a2
or edx, 0xffffffff
mov ecx, edi
call fcn.005e0f30
test al, al
je 0x59f558
sub esp, 8
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
push 0
push 0
push 0
push 0
push 0x624388
push edi
push str.___o_
push dword [ebp - 0x24]
push str._x___y__r__
push ebx
call fcn.005dc520
xor ecx, ecx
mov dword [ebp - 4], 0
call fcn.005d8c40
test eax, eax
je 0x59f506
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x624388
push ecx
push 0x62e4a8
lea ecx, [ebp - 0x20]
call fcn.005da780
mov ecx, esi
call fcn.005d8c40
test eax, eax
je 0x59f533
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0x62e4b0
lea ecx, [ebp - 0x20]
call fcn.005da780
push 2
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov edx, eax
xor ecx, ecx
call fcn.005e2ad0
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.005dc430
mov eax, esi
jmp 0x59f55a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59fcf0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x59fd22
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x59fd22
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x59fde7
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x59fd41
cmp word [ecx], 0x5c
jne 0x59fd43
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x59fd35
cmp esi, ebx
je 0x59fd8e
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0041fb10
add esp, 0xc
cmp esi, 0x208
jae 0x59fdf7
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.0059fcf0
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x59fdb1
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00422c3b
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00422c9f
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x59fde7
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
call fcn.0041e2f9
int3

Function at 0x5a04a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x5a0568
cmp dword [esi + 4], 0xffffffff
jne 0x5a0568
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a04d1
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x5a0505
cmp eax, 0x2f
je 0x5a0505
push 0x624284
push 0x104
push edi
call fcn.00422c9f
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x5a052b
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a052b
mov eax, 0x2000000
pop edi
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.005a1740
add esp, 8
test eax, eax
jne 0x5a054b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, eax
call fcn.005a10c0
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x5a15a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 0xc], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x5a15fc
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a15e4
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 8]
call fcn.0041fb10
add dword [edi + 0x1c], esi
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
xor ecx, ebp
div dword [ebp - 0xc]
pop edi
pop esi
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret

Function at 0x5a1f00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x5a1f50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x5a1f5b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x5a2017
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
sub edi, 1
jne 0x5a1f70
pop edi
test esi, esi
je 0x5a203a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
sub esi, 1
jne 0x5a2020
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x5a47f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x5a4869
mov ecx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp ecx, esi
jae 0x5a48b8
sub esi, ecx
lea eax, [ecx + edx]
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.0041fb10
mov ecx, dword [edi + 0x78]
mov edx, ebx
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.005a5480
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x5a48b1
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a48b8
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.005a5480
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x5a4dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x5a4e5e
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x5a4e11
cmp dword [esi + 0x40], edi
jae 0x5a4e11
push ecx
call fcn.0041e1c3
add esp, 4
mov dword [esi + 0x3c], 0
jmp 0x5a4e15
test eax, eax
jne 0x5a4e27
lea eax, [edi + edi]
push eax
call fcn.0041e7cf
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0041fb10
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x5a4e5b
lea eax, [esi + 0x30]
nop dword [eax + eax]
mov edx, dword [esi + 0x3c]
mov ecx, eax
mov dl, byte [edx + ebx]
call fcn.005a53f0
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea eax, [esi + 0x30]
cmp ebx, edi
jb 0x5a4e40
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x5a4e9e
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x5a4e79
mov dword [esi + 0x14], 0x30000
jmp 0x5a4ed1
push edi
add ecx, edx
push ebx
push ecx
call fcn.0041fb10
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x5a4eca
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x5a5430
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x5a5480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x5a548b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x5a5547
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
sub edi, 1
jne 0x5a54a0
pop edi
test esi, esi
je 0x5a556a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ebd30]
sub esi, 1
jne 0x5a5550
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x5a62e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x5a64fd
cmp eax, 3
jb 0x5a6356
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x5a6393
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x5a6393
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x5a637d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.005a6690
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x5a647b
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.005a6f90
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x5a6439
cmp ecx, 3
jb 0x5a6439
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x5a63e0
jmp 0x5a6499
add dword [esi + 0x6af84], edi
mov dl, 1
mov eax, dword [esi + 0x6af84]
xor edi, edi
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov ecx, esi
mov dword [esi + 0x6af7c], eax
call fcn.005a80f0
add esp, 4
jmp 0x5a649f
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.005a6f90
add esp, 4
mov dword [ebp - 4], eax
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
cmp dword [ebp - 4], 0
je 0x5a64dc
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x5a64b9
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x5a64bb
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.005a7190
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x5a64ef
mov ecx, esi
call fcn.005a6530
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x5a6305
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x5a6511
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x5a6513
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.005a7190
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a82e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffd4e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.005dc400
mov esi, dword [ebx + 0x40]
cmp esi, 0xffffffff
je 0x5a8326
test esi, esi
jne 0x5a838d
push 0
push 0x2000080
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebx + 4]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebx + 0x40]
cmp eax, 0xffffffff
je 0x5a835c
test eax, eax
je 0x5a835c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x40], esi
test esi, esi
jne 0x5a8388
mov dword [ebx + 0x40], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x5a836a
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
or eax, 0xffffffff
test esi, esi
cmove esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, eax
je 0x5a8498
test esi, esi
je 0x5a8498
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x5a8498
push 0x1c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5a8406
mov eax, dword [ebp - 0x24]
jmp 0x5a8411
push 0
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x5a8491
push edi
push dword [ebp - 0x38]
mov edx, 0xf8
mov ecx, ebx
call fcn.005dda80
test al, al
je 0x5a8491
cmp dword [ebx], 0x4550
jne 0x5a8491
mov eax, 0xe0
cmp word [ebx + 0x14], ax
jb 0x5a8498
push 0
push dword [ebx + 0x2c]
push edi
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToVa]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x5a8498
test edx, edx
je 0x5a8498
push edi
push dword [ebp - 0x38]
mov ecx, eax
call fcn.005dda80
test al, al
je 0x5a8498
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push edx
call fcn.005e64d0
test eax, eax
push esi
setne bl
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x5a836c
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor bl, bl
cmp esi, 0xffffffff
je 0x5a84aa
test esi, esi
je 0x5a84aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x5a836c