joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053160
Capabilities:
Check if file exists

Disassembly:
push 0xa4
mov eax, 0x1007f483
call fcn.100600fa
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xac], eax
cmp esi, ebx
jne 0x1005318f
push 3
pop eax
jmp 0x1005324d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005319e
push 4
jmp 0x10053189
push esi
call fcn.10025220
pop ecx
test eax, eax
jne 0x100531ad
push 0xd
jmp 0x10053189
push ebx
push ebx
push 3
pop edi
push edi
push ebx
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa8], eax
cmp eax, ebx
je 0x100531d1
cmp eax, 0xffffffff
jne 0x100531e0
lea ecx, [ebp - 0xa8]
call fcn.10001340
push 5
jmp 0x10053189
lea ecx, [ebp - 0xa8]
call fcn.10001340
lea eax, [ebp - 0xa4]
push eax
call fcn.100519dc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 4], ebx
mov eax, esi
mov dword [ebp - 0xa4], edi
call fcn.10007890
push esi
call fcn.1005251e
pop ecx
push dword [ebp - 0xac]
lea eax, [ebp - 0xa4]
push 1
push dword [ebp - 0xb0]
push 0x7d0
push eax
call fcn.10051f72
add esp, 0x14
push esi
mov ebx, eax
call fcn.1005265d
pop ecx
lea edi, [ebp - 0xa4]
call fcn.10051efc
mov eax, ebx
call fcn.1006017d
ret

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

Disassembly:
or eax, 0xffffffff
test edx, edx
je 0x10053dbf
push esi
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1009a8a0]
dec edx
inc ecx
test edx, edx
jne 0x10053da3
pop esi
not eax
ret

Function at 0x10053fb6
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x130
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
and dword [ebp - 0xc4], 0
push esi
push edi
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x78]
push 0x3f
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x3f]
push 0
push eax
mov byte [ebp - 0x40], 0
call fcn.10062cf0
mov esi, str.podlp
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x40]
mov dl, al
xor dl, 0x36
xor al, 0x5c
mov byte [ebp + ecx - 0x9c], dl
mov byte [ebp + ecx], al
inc ecx
cmp ecx, 0x40
jb 0x10054006
lea eax, [ebp - 0x5c]
call fcn.1005d81d
lea eax, [ebp - 0x9c]
push eax
push 0x40
pop eax
lea esi, [ebp - 0x5c]
call fcn.1005d848
push dword [ebp - 0xc0]
mov eax, dword [ebp + 0x7c]
call fcn.1005d848
lea eax, [ebp + 0x54]
push eax
mov ecx, esi
call fcn.1005d8e0
lea eax, [ebp - 0xb8]
call fcn.1005d81d
lea eax, [ebp]
push eax
push 0x40
pop eax
lea esi, [ebp - 0xb8]
call fcn.1005d848
lea eax, [ebp + 0x54]
push eax
push 0x14
pop eax
call fcn.1005d848
lea eax, [ebp + 0x40]
push eax
mov ecx, esi
call fcn.1005d8e0
mov esi, dword [ebp - 0xbc]
add esp, 0x18
push 0x14
lea eax, [ebp + 0x40]
push eax
call fcn.1003cea8
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005ebcb
add ebp, 0x6c
leave
ret
Function at 0x100540b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x144], 0
push esi
push edi
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
push 0x3f
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0xa7]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0xa8], 0
call fcn.10062cf0
add esp, 0xc
cmp dword [ebp + 0x14], 0x40
ja 0x10054115
push dword [ebp + 0x14]
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.10063220
add esp, 0xc
jmp 0x1005414e
lea eax, [ebp - 0x138]
call fcn.1005d9a1
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 0x138]
call fcn.1005d9e1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x138]
call fcn.1005da6d
pop ecx
pop ecx
push 0x10
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov al, byte [ebp + ecx - 0xa8]
mov dl, al
xor dl, 0x36
xor al, 0x5c
mov byte [ebp + ecx - 0x48], dl
mov byte [ebp + ecx - 0x110], al
inc ecx
cmp ecx, 0x40
jb 0x10054150
lea eax, [ebp - 0xd0]
call fcn.1005d9a1
lea eax, [ebp - 0x48]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xd0]
call fcn.1005d9e1
push dword [ebp - 0x13c]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xd0]
call fcn.1005d9e1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd0]
call fcn.1005da6d
lea eax, [ebp - 0xd0]
call fcn.1005d9a1
lea eax, [ebp - 0x110]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xd0]
call fcn.1005d9e1
lea eax, [ebp - 0x28]
push eax
push 0x20
pop eax
lea ecx, [ebp - 0xd0]
call fcn.1005d9e1
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xd0]
call fcn.1005da6d
mov esi, dword [ebp - 0x140]
add esp, 0x18
push 0x20
lea eax, [ebp - 0x68]
push eax
call fcn.1003cea8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005ebcb
leave
ret
Function at 0x10054628
Capabilities:
Delete file
Get file size

Disassembly:
push 0x2ac
mov eax, 0x1007a653
call fcn.100600fa
xor edi, edi
push edi
push dword [0x100a0a18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x100546a5
push 0x2d
push edi
mov esi, 0x100a0a1c
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [eax], cx
inc dword [0x100a0c24]
push dword [0x100a0c24]
lea eax, [ebp - 0x90]
push 0x1008a218
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [0x100a0a18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a0a18], 0xffffffff
xor eax, eax
push 0x206
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push edi
push eax
call fcn.10062cf0
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call fcn.100544cc
lea eax, [ebp - 0x2b0]
push eax
call fcn.1002b0f0
push edi
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0x100545b4
push edi
lea eax, [ebp - 0x298]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], edi
call fcn.10039a23
mov eax, dword [ebp - 0x2a0]
sub eax, dword [ebp - 0x2a4]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 0x64
ja 0x10054730
cmp dword [ebp - 0x2b4], edi
ja 0x10054730
cmp dword [ebp - 0x2b8], 0x3200000
jbe 0x1005476b
cmp eax, 0x14
jbe 0x1005473a
push 0xa
pop ebx
jmp 0x10054741
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, edi
jle 0x1005476b
push edi
lea esi, [ebp - 0x2b0]
call fcn.1003cecc
cmp dword [eax + 0x18], 8
jb 0x1005475c
mov eax, dword [eax + 4]
jmp 0x1005475f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, ebx
jl 0x10054745
lea esi, [ebp - 0x2b0]
call fcn.10007d10
call fcn.1006017d
ret
Function at 0x100559a4
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1007701d
call fcn.100600c4
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1005f40e
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x100559d8
lea eax, [ebp + 8]
call fcn.1002fe80
jmp 0x100559da
xor eax, eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push 0x10055a1a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.10008330
mov eax, edi
jmp 0x10055a14
call fcn.10060169
ret

Function at 0x10055c4d
Capabilities:
Delete registry value

Disassembly:
push 0x58
mov eax, 0x10079f84
call fcn.100600fa
lea eax, [ebp - 0x48]
push eax
mov edi, ecx
mov esi, edx
call fcn.1003bb45
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], ebx
je 0x10055d0e
cmp esi, ebx
jne 0x10055c7e
mov esi, 0x10083c5f
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x10055c8a
lea eax, [ebp - 0x44]
push edi
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._s__hs__p
lea esi, [ebp - 0x2c]
call fcn.1003c4c4
add esp, 0x10
mov byte [ebp - 4], 1
cmp byte [ebp + 8], bl
je 0x10055ce9
lea eax, [ebp - 0x64]
push eax
call fcn.1003b2d2
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10055cc2
mov eax, dword [eax + 4]
jmp 0x10055cc5
add eax, 4
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10055cd1
lea ecx, [ebp - 0x28]
push ebx
push eax
mov ebx, ecx
mov edi, 0x100a0c40
call fcn.1003c5e2
lea esi, [ebp - 0x64]
call fcn.1002fe50
jmp 0x10055d06
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10055cf5
lea eax, [ebp - 0x28]
push eax
push 0x100a0c40
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [ebp - 0x2c]
call fcn.1002fe50
lea esi, [ebp - 0x48]
call fcn.1002fe50
call fcn.1006017d
ret 4

Function at 0x10055f6b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
cmp eax, 0xc6
ja 0x10056005
push ebx
mov esi, 0x100a0c40
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10062cf0
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push edi
push 0x1008611c
push esi
call ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call ebx
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.10055ae1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret
Function at 0x1005635a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
mov edi, str..gxdte_cd
push edi
call esi
cmp eax, 0xffffffff
jne 0x10056435
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push ebx
push eax
call fcn.10062cf0
add esp, 0xc
call fcn.100562e2
mov ebx, eax
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
call fcn.1003a7d3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100563fd
cmp word [0x100a0e48], ax
je 0x100563fd
push 0x100a0e48
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1003a91d
mov ebx, str.gxdte64.sys
test eax, eax
jne 0x10056410
mov ebx, str.gxdte32.sys
call fcn.1003cc83
push ebx
lea ecx, [esp + 0x14]
call fcn.1005e376
call fcn.1003cc22
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0xc0000000
push edi
call esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005ebcb
mov esp, ebp
pop ebp
ret

Function at 0x100565dd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
push edi
xor eax, eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
lea edi, [ebp - 0x11]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1005661a
cmp eax, 3
jne 0x10056632
push ebx
call fcn.1003ac44
pop ecx
cmp eax, 0xffffffff
je 0x1005663f
cmp eax, 7
jne 0x10056632
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x10056641
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1005ebcb
leave
ret

Function at 0x1005664e
Capabilities:
Get disk information

Disassembly:
push 0x28
mov eax, 0x10079f4f
call fcn.100600fa
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ebx
call fcn.1001da80
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
jmp 0x10056688
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x100566c9
mov byte [ebp - 0x11], bl
mov bl, byte [ebp - 0x18]
add bl, 0x61
lea esi, [ebp - 0x11]
call fcn.100565dd
test al, al
je 0x100566c9
cmp byte [ebp - 0x11], 0
je 0x100566c9
mov al, byte [ebp - 0x18]
add al, 0x41
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x1c]
lea ebx, [ebp - 0x30]
call fcn.100566db
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1a
jl 0x10056686
mov eax, dword [ebp - 0x1c]
call fcn.1006017d
ret
Function at 0x10056b48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x10056b62
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x10056b5e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10056c7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.10056e43
mov bl, al
mov al, dl
call fcn.10056e43
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.10056e43
mov bl, al
mov al, byte [esi - 4]
call fcn.10056e43
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.10056e43
mov bl, al
mov al, byte [esi]
call fcn.10056e43
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.10056e43
mov bl, al
mov al, byte [esi - 0xc]
call fcn.10056e43
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10056ca5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret 4
Function at 0x10056d32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.10056ebf
push ebx
mov dl, al
call fcn.10056e98
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.10056e53
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.10056e71
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.10056e53
push ebx
mov byte [ebp - 0x15], al
call fcn.10056e71
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.10056e98
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.10056ebf
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.10056e98
mov bl, al
mov al, byte [edi + 4]
call fcn.10056ebf
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.10056e71
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10056e53
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.10056e71
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.10056e53
xor bl, al
mov al, dl
call fcn.10056ebf
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10056e98
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x10056d5e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret 4
Function at 0x10057580
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x10077529
call fcn.100600fa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x30], ebx
xor esi, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1005759e
sub eax, ecx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.100092a0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
jbe 0x1005769d
movsx eax, byte [esi + edi]
mov al, byte [eax + 0x10088b80]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x100575da
cmp al, 0xff
je 0x100575c6
cmp al, 0xff
je 0x1005769d
movsx ecx, byte [esi + edi]
mov cl, byte [ecx + 0x10088b80]
inc esi
mov byte [ebp - 0x32], cl
cmp esi, dword [ebp - 0x30]
jae 0x100575fa
cmp cl, 0xff
je 0x100575e2
cmp cl, 0xff
je 0x1005769d
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea ebx, [ebp - 0x2c]
call fcn.1003d1d5
mov al, byte [esi + edi]
inc esi
cmp al, 0x3d
je 0x1005769d
movsx eax, al
mov al, byte [eax + 0x10088b80]
mov byte [ebp - 0x31], al
cmp esi, dword [ebp - 0x30]
jae 0x1005763a
cmp al, 0xff
je 0x1005761d
cmp al, 0xff
je 0x1005769d
mov cl, al
mov al, byte [ebp - 0x32]
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea ebx, [ebp - 0x2c]
call fcn.1003d1d5
mov al, byte [esi + edi]
inc esi
cmp al, 0x3d
je 0x1005769d
movsx eax, al
mov cl, byte [eax + 0x10088b80]
cmp esi, dword [ebp - 0x30]
jae 0x10057678
cmp cl, 0xff
je 0x1005765d
cmp cl, 0xff
je 0x1005769d
mov al, byte [ebp - 0x31]
shl al, 6
or al, cl
movzx eax, al
push eax
xor eax, eax
inc eax
lea ebx, [ebp - 0x2c]
call fcn.1003d1d5
cmp esi, dword [ebp - 0x30]
jb 0x100575c6
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10007790
lea ecx, [ebp - 0x2c]
call fcn.100077c0
mov eax, dword [ebp - 0x38]
call fcn.1006017d
ret
Function at 0x10057748
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x10076fc3
call fcn.100600fa
mov eax, dword [ebp + 8]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 7
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + edi*4 - 0x38]
push 0x80000000
push dword [ebp - 0x28]
call dword [0x100a17a8]
push eax
lea esi, [ebp - 0x20]
call fcn.1005770c
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x100577b1
cmp ecx, 0xffffffff
jne 0x100577b7
inc edi
cmp edi, 4
jb 0x10057781
cmp ecx, ebx
je 0x100577c2
or eax, 0xffffffff
cmp ecx, eax
jne 0x100577d2
lea ecx, [ebp - 0x20]
call fcn.10001340
xor eax, eax
call fcn.1006017d
ret
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0x70bfbbef
jne 0x100577ff
cmp dword [ebp - 0x18], 0x706c646f
je 0x1005780b
lea ecx, [ebp - 0x20]
call fcn.10001340
mov eax, ebx
jmp 0x100577cc
mov eax, dword [ebp - 0x14]
dec eax
dec eax
je 0x1005781a
dec eax
jne 0x100577ff
push 3
pop ebx
jmp 0x100577ff
push 2
jmp 0x10057817

Function at 0x10057863
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x190
mov eax, dword [esp + 8]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, ecx
shr edx, 0x10
xor byte [eax], dl
inc ecx
cmp ecx, 0x1000
jl 0x10057868
ret
Function at 0x1005790f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], esi
ja 0x1005794c
jb 0x10057a65
cmp eax, 0x1000
jb 0x10057a65
push 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov dword [ebp - 0x20], edi
call esi
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
push eax
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10057999
cmp dword [ebp - 0x1c], eax
jne 0x10057a65
push eax
jmp 0x10057a52
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x100579ae
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
cmp dword [ebx], 0x70bfbbef
jne 0x10057a4c
cmp dword [ebx + 4], 0x706c646f
jne 0x10057a4c
mov eax, dword [ebx + 8]
cmp eax, 2
je 0x100579d4
cmp eax, 3
jne 0x10057a4c
push dword [ebx + 0x18c]
push ebx
call fcn.10057863
cmp byte [ebx + 0x4a3], 0
pop ecx
pop ecx
jne 0x10057a2d
cmp dword [ebx + 0x1a0], 0x40
ja 0x10057a2d
mov eax, 0x270f
cmp word [ebx + 0x190], ax
ja 0x10057a2d
movzx eax, word [ebx + 0x192]
cmp ax, 1
jb 0x10057a2d
cmp ax, 0xc
ja 0x10057a2d
movzx eax, word [ebx + 0x196]
cmp ax, 1
jb 0x10057a2d
cmp ax, 0x1f
ja 0x10057a2d
xor ebx, ebx
inc ebx
jmp 0x10057a2f
xor ebx, ebx
cmp dword [ebp - 0x1c], edi
jne 0x10057a48
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call esi
mov eax, ebx
jmp 0x10057a67
cmp dword [ebp - 0x1c], edi
jne 0x10057a65
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005afd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1005b02c
cmp eax, 0xffffffff
je 0x1005b02c
push esi
lea ecx, [ebp - 4]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005b02c
cmp dword [ebp - 4], 4
jne 0x1005b02c
cmp dword [ebp - 8], 0x21726152
jne 0x1005b02c
inc esi
lea ecx, [ebp - 0xc]
call fcn.10001340
mov eax, esi
pop esi
leave
ret