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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x4bc3fe
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.0058d1c4
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4bc457
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.005915f1
push dword [ebp - 8]
call fcn.00589953
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x4bc43f
cmp al, 0xfe
je 0x4bc448
cmp al, 0xff
jne 0x4bc451
cmp cl, 0xfe
jne 0x4bc451
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4bc460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x4bc49a
call fcn.004bc3e0
test al, al
jne 0x4bc49a
mov eax, dword [ebx]
test eax, eax
je 0x4bc493
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.004bd390
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x4bc4a7
mov eax, dword [esi]
jmp 0x4bc4a9
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4bc541
cmp dword [esi + 0x14], 8
jb 0x4bc4d1
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4bc4fc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x4bc52a
push 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp - 4]
mov word [ebp - 4], 0xbbef
push ecx
push eax
mov byte [ebp - 2], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc550
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6636
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x645624]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bc614
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00467340
xor bl, bl
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4bc5e9
cmp eax, 0xb7
je 0x4bc5e9
cmp eax, 0x50
jne 0x4bc5eb
mov bl, 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4bc609
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004688c0
test bl, bl
jne 0x4bc614
xor al, al
jmp 0x4bc732
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4bc63e
xor ecx, ecx
jmp 0x4bc656
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc647
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00467810
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x4bc696
xor ecx, ecx
jmp 0x4bc6af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc6a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00467810
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004be2a0
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4bc6f5
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.004688c0
test bl, bl
je 0x4bc712
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4bc710
push 0xffffffffffffffff
push 0
push eax
call fcn.00467cf0
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4bc730
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004688c0
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 - 0x10]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bc950
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x611ddc
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4bc9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4bc9c0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x609b18
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bd390
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d67f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x645624]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
mov dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00467cf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004be350
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004be0f0
lea eax, [ebp - 0x58]
mov edx, 0x611e88
push eax
lea ecx, [ebp - 0x70]
call fcn.004bdcb0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00470f20
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4bd449
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004688c0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004be5e0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004be3e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4bd4d5
cmp dword [esi + 0x10], 0
je 0x4bd4d5
cmp dword [ebp - 0x18], 0
je 0x4bd4d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x4bd4ac
mov esi, dword [esi]
push eax
push esi
call fcn.00597534
add esp, 8
test eax, eax
jne 0x4bd4d5
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4bd4d1
push 0xffffffffffffffff
push 0
push eax
call fcn.00467cf0
mov bl, 1
jmp 0x4bd4d7
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4bd4ec
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004688c0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4bd515
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004688c0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x4bd53e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004688c0
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 - 0x10]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret
Function at 0x4be210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4be24d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x4be25b
xor ecx, ecx
jmp 0x4be273
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be264
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00467810
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0057b676
mov esp, ebp
pop ebp
ret

Function at 0x4be810
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
push edi
jb 0x4be828
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4be853
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4be872
mov eax, dword [ebp - 0x10]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x4be87e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4be8c4
cmp dword [ebp - 4], 0
jl 0x4be8c4
jg 0x4be89a
cmp dword [ebp - 8], 0xa00000
jb 0x4be8c4
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
test eax, eax
je 0x4be8ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004bd6b0
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4be8d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4be91e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x4be91b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4be91b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
mov ecx, dword [ebp + 0x1c]
setne bl
cmp ecx, 8
jb 0x4be936
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004688c0
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x18
Function at 0x4bf260
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x82], 0
push esi
lea esi, [ecx + 0x82]
jne 0x4bf310
lea eax, [ebp - 0x38]
push eax
call fcn.004bf3e0
test eax, eax
je 0x4bf2a5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x8c], 0x67452301
mov dword [ebp - 0x88], 0xefcdab89
lea edx, [ecx + 1]
mov dword [ebp - 0x84], 0x98badcfe
mov dword [ebp - 0x80], 0x10325476
mov dword [ebp - 0x7c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf2d7
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004bf6b0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004bf7c0
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.004bf530
add esp, 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0057b676
mov esp, ebp
pop ebp
ret

Function at 0x4bf680
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x4c40c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00581fe0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0048ff80
push 1
push 0x60a09c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00595f1f
push 3
push 0x60bb24
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00595f1f
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00581fe0
add esp, 0x40
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c417d
push 0
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret
Function at 0x4c8190
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
xor eax, eax
mov word [esi + 0x100], 0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4c81a2
xor edi, edi
nop
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [esi + 0x204]
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x4c81b0
pop edi
pop esi
pop ebx
ret

Function at 0x4c81f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x4c827b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4c827b
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4c827b
mov dl, byte [esi + 0x101]
sub ecx, edi
push ebx
mov bh, byte [esi + 0x100]
mov byte [ebp + 0xf], dl
mov dword [ebp + 8], ecx
dec eax
lea edi, [edi + 1]
mov dword [ebp + 0x10], eax
inc bh
mov al, byte [ebp + 0xf]
movzx edx, bh
mov bl, byte [edx + esi]
add al, bl
movzx ecx, al
mov byte [ebp + 0xf], al
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [ebp + 8]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor al, byte [ecx + edi - 1]
mov byte [edi - 1], al
mov eax, dword [ebp + 0x10]
test eax, eax
jg 0x4c8221
mov dl, byte [ebp + 0xf]
mov al, 1
mov byte [esi + 0x100], bh
pop ebx
pop edi
mov byte [esi + 0x101], dl
pop esi
pop ebp
ret 0xc
pop edi
xor al, al
pop esi
pop ebp
ret 0xc

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

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

Function at 0x4c82a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c82fb
push ebx
push esi
push edi
mov edi, 0x608b78
mov byte [edx], 0xdd
mov ebx, 0x608b79
lea eax, [edx + 1]
mov ecx, 0x608b7a
sub edi, edx
sub ebx, edx
mov esi, 0x15
sub ecx, edx
mov dword [ebp + 8], ecx
movzx ecx, byte [edi + eax]
lea eax, [eax + 3]
xor cl, byte [edx]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x4c82d0
pop edi
pop esi
pop ebx
mov eax, 0x40
pop ebp
ret 4

Function at 0x4c8330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c838b
push ebx
push esi
push edi
mov edi, 0x608c00
mov byte [edx], 0xd0
mov ebx, 0x608c01
lea eax, [edx + 1]
mov ecx, 0x608c02
sub edi, edx
sub ebx, edx
mov esi, 0x15
sub ecx, edx
mov dword [ebp + 8], ecx
movzx ecx, byte [edi + eax]
lea eax, [eax + 3]
xor cl, byte [edx]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x4c8360
pop edi
pop esi
pop ebx
mov eax, 0x40
pop ebp
ret 4
Function at 0x4c83a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c83fb
push ebx
push esi
push edi
mov edi, 0x608b38
mov byte [edx], 0xbd
mov ebx, 0x608b39
lea eax, [edx + 1]
mov ecx, 0x608b3a
sub edi, edx
sub ebx, edx
mov esi, 0x15
sub ecx, edx
mov dword [ebp + 8], ecx
movzx ecx, byte [edi + eax]
lea eax, [eax + 3]
xor cl, byte [edx]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x4c83d0
pop edi
pop esi
pop ebx
mov eax, 0x40
pop ebp
ret 4

Function at 0x4c8410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c8488
push ebx
push esi
mov ecx, str.1e210
mov byte [edx], 0x30
sub ecx, edx
lea eax, [edx + 1]
push edi
mov dword [ebp + 8], ecx
mov edi, 0x6089d8
mov ebx, 0x6089d9
mov ecx, 0x6089db
sub edi, edx
sub ebx, edx
sub ecx, edx
mov esi, 0x56
mov dword [ebp - 4], ecx
nop dword [eax + eax]
movzx ecx, byte [edi + eax]
lea eax, [eax + 4]
xor cl, byte [edx]
mov byte [eax - 4], cl
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 3], cl
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x4c8450
pop edi
pop esi
pop ebx
mov eax, 0x159
mov esp, ebp
pop ebp
ret 4
Function at 0x4c8540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 1
mov dword [ebp - 0x18], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push 0xe
push eax
call fcn.005915f1
add esp, 0x10
cmp eax, 1
je 0x4c8585
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebp - 0x14]
mov ch, byte [ebp - 0x13]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0xa]
mov byte [esi], cl
mov byte [esi + 1], ch
mov dword [esi + 4], edx
mov dword [esi + 0xc], eax
push ebx
mov bx, word [ebp - 0xe]
mov word [esi + 8], bx
push edi
mov di, word [ebp - 0xc]
mov word [esi + 0xa], di
cmp cl, 0x42
jne 0x4c86ec
cmp ch, 0x4d
jne 0x4c86ec
test bx, bx
jne 0x4c86ec
test di, di
jne 0x4c86ec
cmp edx, 0x36
jbe 0x4c86ec
cmp edx, 0x1e8480
ja 0x4c86ec
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c85f7
push eax
call fcn.00593b50
add esp, 4
push dword [esi + 4]
call fcn.00594461
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4c8621
pop edi
pop ebx
mov eax, 0xfffffff9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
xor edx, edx
mov ecx, dword [esi + 0x3c]
movzx eax, byte [ebp + edx - 0x14]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
movzx eax, byte [ebp + edx - 0x13]
mov byte [ecx + edx + 1], al
add edx, 2
cmp edx, 0xe
jl 0x4c8623
push dword [ebp - 0x18]
mov eax, dword [esi + 4]
sub eax, 0xe
push 1
push eax
mov eax, dword [esi + 0x3c]
add eax, 0xe
push eax
call fcn.005915f1
add esp, 0x10
cmp eax, 1
je 0x4c8667
push dword [esi + 0x3c]
jmp 0x4c86dd
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0xe]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x12]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x16]
mov dword [esi + 0x18], eax
movzx eax, word [ecx + 0x1a]
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], 1
movzx eax, word [ecx + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x1e]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x22]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x26]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x2a]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x2e]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x32]
mov dword [esi + 0x38], eax
jne 0x4c86dc
cmp dword [esi + 0x24], 0
jne 0x4c86dc
mov eax, dword [esi + 0x20]
cmp eax, 0x18
je 0x4c86c7
cmp eax, 0x20
jne 0x4c86dc
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00593b50
mov dword [esi + 0x3c], 0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffe
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
Function at 0x4c8780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
mov edx, dword [edi + 0x3c]
test edx, edx
jne 0x4c87b7
lea eax, [edx - 3]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4c87d4
lea eax, [ebx - 4]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
push esi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c87e0
mov eax, dword [edi + 0x18]
sub ecx, esi
imul eax, dword [edi + 0x14]
inc ecx
mov dword [ebp - 0x10], ecx
lea eax, [eax + eax*2]
cmp ecx, eax
jbe 0x4c8813
pop esi
pop ebx
mov eax, 0xfffffffb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov edi, dword [edi + 0xc]
xor esi, esi
add edi, edx
shr eax, 3
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x8040201
mov dword [ebp - 8], 0x80402010
cmp dword [ebp - 0x10], ecx
jbe 0x4c8886
nop word [eax + eax]
mov al, byte [esi + ebx]
test byte [ebp + edx - 0xc], al
mov al, byte [ecx + edi]
jne 0x4c8854
test al, 1
je 0x4c885d
dec al
jmp 0x4c885a
test al, 1
jne 0x4c885d
inc al
mov byte [ecx + edi], al
inc ecx
cmp dword [ebp - 0x14], 4
jne 0x4c8878
mov eax, ecx
and eax, 0x80000003
jns 0x4c8872
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
jne 0x4c8878
inc ecx
inc edx
cmp edx, 8
jne 0x4c8881
xor edx, edx
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x4c8840
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 1
push dword [eax + 4]
push dword [eax + 0x3c]
call fcn.00593e89
mov ecx, dword [ebp - 4]
add esp, 0x10
dec eax
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
pop ebx
and eax, 0xfffffffa
pop edi
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8