joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449790
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], eax
push edi
test esi, esi
je 0x449816
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4497c3
sub eax, edi
je 0x449816
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push edx
push esi
call fcn.004523e0
mov ecx, eax
call fcn.004525f0
test al, al
je 0x449961
mov ecx, esi
call fcn.004495b0
mov esi, eax
test esi, esi
je 0x449961
mov ecx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x110]
sub ecx, edi
mov dword [esi + 0xc], ecx
jmp 0x449829
mov ecx, edx
xor edi, edi
call fcn.004495b0
mov esi, eax
test esi, esi
je 0x449961
mov eax, dword [esi + 4]
sub esp, 0x10
add eax, edi
mov dword [ebp - 0x128], 0x449680
mov dword [esi + 8], eax
mov edx, ebx
mov eax, esp
mov dword [ebp - 0x124], 0x4496d0
mov dword [ebp - 0x120], 0x449740
sub esp, 8
mov dword [ebp - 0x11c], 0x449720
mov ecx, esi
movups xmm0, xmmword [ebp - 0x128]
movups xmmword [eax], xmm0
call fcn.0044ae50
add esp, 0x18
test eax, eax
jne 0x449961
mov ecx, ebx
call fcn.0044afd0
test eax, eax
jne 0x449961
mov edx, dword [ebp - 0x10c]
mov ecx, ebx
call fcn.00449360
cmp dword [ebx + 4], 0
je 0x4498b2
cmp dword [ebx + 0x58], 3
jl 0x4498b2
mov eax, dword [ebx + 0x60]
shl eax, 5
add eax, dword [ebx + 0x48]
jmp 0x4498b5
mov eax, dword [ebx + 0x48]
push dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebx + 8]
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x108]
push dword [ebp - 0x118]
push str._n_s_ch:_d___rate:_d___offset:_d__n
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x108]
add esp, 0x1c
push eax
call esi
or edx, 0xffffffff
mov ecx, ebx
call fcn.0044b330
push edx
push eax
or edx, 0xffffffff
mov ecx, ebx
call fcn.0044b3d0
push edx
push eax
lea eax, [ebp - 0x108]
push str._t_pcm:__d___raw:__d__n
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, ecx
sub eax, edx
push eax
push ecx
push edx
lea eax, [ebp - 0x108]
push str._t_start:__d___end__d__d___n
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d312
mov esp, ebp
pop ebp
ret
Function at 0x44cef0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x103
push 0
push 0x502538
mov esi, ecx
call fcn.0047ebc0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cf11
sub ecx, edx
cmp ecx, 0x100
jae 0x44cf3f
mov ecx, 0x502538
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x44cf30
jmp 0x44cf52
push 0x100
push esi
push 0x502538
call fcn.004c0c60
add esp, 0xc
mov edi, 0x502538
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x44cf58
mov ax, word [0x4f180c]
push 0x502538
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x502535], 0
je 0x44cfdb
mov esi, 0x502538
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x44cf87
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push str.Riput.txt
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44cfdb
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0x502538
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x44d000
sub esi, ecx
xor edi, edi
mov eax, esi
test esi, esi
jle 0x44d029
movzx edx, byte [edi + ebx]
inc edi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4f1818]
cmp edi, esi
jl 0x44d011
pop edi
pop esi
pop ebx
ret

Function at 0x44eb00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44eb2c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x44eb5f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44eb80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_4
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ebb0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x44ebe2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ec10
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov eax, ecx
push edi
lea edx, [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0044eb80
mov edi, eax
test edi, edi
jne 0x44ec33
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 4]
xor ecx, ecx
cmp esi, ebx
jae 0x44ec58
nop dword [eax]
mov al, byte [ecx + 0x4dd178]
xor byte [esi + edi], al
lea eax, [ecx + 1]
inc esi
cmp eax, 0x40
sbb ecx, ecx
and ecx, eax
cmp esi, ebx
jb 0x44ec40
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ec91
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44ee60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, ebx
push esi
push edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x44ee80
sub edx, ecx
je 0x44ef49
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.004c151c
add esp, 8
test eax, eax
je 0x44ef49
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44ef49
mov ecx, 0x80
lea edi, [ebp - 0x238]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x238]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44eed0
sub ecx, edx
mov eax, ecx
test ecx, ecx
jle 0x44eef6
nop
mov dl, byte [ebp + eax - 0x238]
cmp dl, 0x5c
je 0x44ef37
cmp dl, 0x2f
je 0x44ef37
dec eax
test eax, eax
jg 0x44eee0
push 0x200
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0047ebc0
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.0044ee60
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44ef49
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jg 0x44ef0c
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x238]
add eax, ecx
jmp 0x44ef01
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d312
mov esp, ebp
pop ebp
ret

Function at 0x44f160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
call fcn.0044f080
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov al, byte [edx + eax]
movzx edi, al
push edi
call fcn.00483450
add esp, 4
test eax, eax
jne 0x44f19b
push 0x4f1c2c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push edi
call fcn.00483450
add esp, 4
test eax, eax
je 0x44f1d9
nop dword [eax + eax]
inc dword [esi + 4]
lea ebx, [ebx + ebx*4]
mov ecx, dword [esi + 4]
lea ebx, [ebx - 0x18]
lea ebx, [edi + ebx*2]
cmp ecx, dword [esi + 8]
ja 0x44f192
mov eax, dword [esi]
mov al, byte [ecx + eax]
movzx edi, al
push edi
call fcn.00483450
add esp, 4
test eax, eax
jne 0x44f1b0
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x44f840
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
cmp dword [ebx], 0x53534345
mov dword [ebp - 0x218], esi
je 0x44f896
push str.ECS_label_error
push 0x200
push esi
call fcn.00483128
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 4], 0
je 0x44f8a3
push str.ECS_version_error
jmp 0x44f874
movzx eax, word [ebx + 8]
push edi
mov word [ecx], ax
mov edi, 0xa
push 4
lea eax, [eax + eax*2]
push 0x3000
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x214]
mov dword [edx + 4], eax
test eax, eax
jne 0x44f8fb
push str.ECS_alloc_failed
push 0x200
push esi
call fcn.00483128
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x208], eax
cmp cx, word [edx]
jae 0x44fa0f
nop
movzx eax, ax
push 4
push 0x3000
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
lea ecx, [eax + ecx*4]
mov ax, word [ebx + edi]
mov word [ecx], ax
movzx esi, word [ebx + edi + 2]
add edi, 4
mov eax, esi
mov dword [ebp - 0x20c], ecx
push eax
push 0
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x20c]
mov edx, eax
mov dword [ecx + 4], edx
test si, si
je 0x44f961
test edx, edx
je 0x44fa24
mov esi, dword [ebp - 0x210]
lea eax, [ebx + edi]
push esi
push eax
push edx
call fcn.004803e0
add esp, 0xc
add edi, esi
movzx esi, word [ebx + edi]
add edi, 2
push 4
mov eax, esi
push 0x3000
push eax
push 0
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov eax, dword [ebp - 0x20c]
mov dword [eax + 8], ecx
test si, si
je 0x44f9ae
test ecx, ecx
je 0x44fa56
mov esi, dword [ebp - 0x210]
lea eax, [ebx + edi]
push esi
push eax
push ecx
call fcn.004803e0
mov eax, dword [ebp - 0x20c]
add edi, esi
push dword [eax + 8]
push dword [eax + 4]
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x204]
push str.code:_d_____s____s__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x208]
mov edx, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x208], eax
cmp ax, word [edx]
jb 0x44f910
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x208]
movzx eax, cx
push eax
push str.ECS_alloc_jp:_d_failed
push dword [ebp - 0x218]
call fcn.0044d1b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x208]
movzx eax, cx
push eax
push str.ECS_alloc_en:_d_failed
push dword [ebp - 0x218]
call fcn.0044d1b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44fa90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push 0x4dc30c
mov ebx, ecx
call fcn.004523e0
mov ecx, eax
call fcn.004526f0
mov esi, eax
test esi, esi
jne 0x44fae4
lea edx, [ebp - 4]
mov ecx, edi
call fcn.0044eb80
mov esi, eax
test esi, esi
jne 0x44fae4
push edi
push str.ECS_open_file___s__failed
push dword [ebp + 0x10]
call fcn.0044d1b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 4]
mov edx, 4
xor ecx, ecx
cmp edi, edx
jbe 0x44fb0a
mov al, byte [ecx + 0x4dd238]
xor byte [edx + esi], al
lea eax, [ecx + 1]
inc edx
cmp eax, 0x40
sbb ecx, ecx
and ecx, eax
cmp edx, edi
jb 0x44faf2
push dword [ebp + 0x10]
push ecx
push esi
mov ecx, ebx
call fcn.0044f840
push 0x8000
push 0
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x450dd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x208
push eax
push ebx
push edi
call fcn.00498c80
add esp, 0x10
test eax, eax
je 0x450e28
push str.Webp_GetFeatures_Failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
push eax
push ebx
push edi
call fcn.00498c60
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x450e66
push str.Webp_Decode_Failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x408]
test eax, eax
je 0x450e88
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x408], 0
xor eax, eax
mov byte [esi], 0
push 0x400
push eax
mov dword [esi + 2], eax
lea eax, [esi + 6]
push eax
call fcn.0047ebc0
mov edi, dword [ebp - 0xb8]
add esp, 0xc
imul edi, dword [ebp - 0xb4]
push 4
push 0x3000
shl edi, 2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x408], eax
test eax, eax
jne 0x450eea
push ebx
call fcn.0047e1c0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 8
push edi
push ebx
push eax
call fcn.004803e0
movzx eax, word [ebp - 0xb8]
mov word [esi + 2], ax
movzx eax, word [ebp - 0xb4]
push ebx
mov byte [esi], 0x20
mov word [esi + 4], ax
call fcn.0047e1c0
push dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push dword [ebp - 0xa8]
push dword [ebp - 0xa0]
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
push str.webp:_d_x__d__format:_d___alpha:_d___anim:_d__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d312
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], ecx
push edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4519a0
sub esi, edx
xor ebx, ebx
mov edi, esi
test esi, esi
jle 0x4519d5
movsx eax, byte [ebx + ecx]
push eax
call fcn.0048338b
xor eax, edi
inc ebx
movzx ecx, al
add esp, 4
shr edi, 8
xor edi, dword [ecx*4 + 0x4f1818]
mov ecx, dword [ebp - 4]
cmp ebx, esi
jl 0x4519b1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [eax + 3]
mov dword [ebp - 0x38], ecx
mov ecx, eax
sub ecx, edi
mov dword [ebp - 0x34], 0x41b70c59
mov dword [ebp - 0x40], ecx
mov ecx, 1
sub ecx, edi
mov dword [ebp - 0x30], 0xfb80d83c
mov dword [ebp - 0x44], ecx
lea ebx, [edi + 1]
mov ecx, 2
mov dword [ebp - 0x2c], 0x68d75cc4
sub ecx, edi
mov dword [ebp - 0x28], 0x17a3b328
mov dword [ebp - 0x48], ecx
not edi
mov ecx, 0xfffffffe
mov dword [ebp - 0x24], 0x5d1bb229
sub ecx, eax
mov dword [ebp - 0x20], 0x545afcdc
mov dword [ebp - 0x1c], 0xe44d016
mov dword [ebp - 0x18], 0xf3db4205
mov dword [ebp - 0x14], 0xe2c547cf
mov dword [ebp - 0x10], 0xbea065a5
mov dword [ebp - 0xc], 0x6e103a08
mov dword [ebp - 8], 0xc195cdec
mov dword [ebp - 0x3c], ecx
nop dword [eax]
lea esi, [edi + ebx]
mov eax, 0xaaaaaaab
mul esi
mov eax, esi
shr edx, 5
lea ecx, [edx + edx*2]
shl ecx, 4
sub eax, ecx
mov ecx, dword [ebp - 0x38]
movzx eax, byte [ebp + eax - 0x34]
xor al, byte [ecx - 3]
add ecx, dword [ebp - 0x3c]
mov byte [ebx - 1], al
mov eax, 0xaaaaaaab
mul ecx
mov eax, esi
shr edx, 5
lea ecx, [edx + edx*2]
shl ecx, 4
sub eax, ecx
mov ecx, dword [ebp - 0x40]
movzx eax, byte [ebp + eax - 0x33]
xor al, byte [ecx + ebx]
mov ecx, dword [ebp - 0x44]
mov byte [ebx], al
mov eax, 0xaaaaaaab
lea ecx, [ecx + ebx]
mul ecx
mov eax, esi
shr edx, 5
lea ecx, [edx + edx*2]
shl ecx, 4
sub eax, ecx
mov ecx, dword [ebp - 0x38]
movzx eax, byte [ebp + eax - 0x32]
xor al, byte [ecx - 1]
mov ecx, dword [ebp - 0x48]
mov byte [ebx + 1], al
mov eax, 0xaaaaaaab
lea ecx, [ecx + ebx]
mul ecx
mov ecx, dword [ebp - 0x38]
lea ebx, [ebx + 4]
shr edx, 5
lea eax, [edx + edx*2]
shl eax, 4
sub esi, eax
movzx eax, byte [ebp + esi - 0x31]
xor al, byte [ecx]
add ecx, 4
mov byte [ebx - 2], al
lea eax, [edi + ebx]
mov dword [ebp - 0x38], ecx
cmp eax, 0x80
jl 0x451d60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d312
mov esp, ebp
pop ebp
ret 8
Function at 0x451e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x451e5e
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x10], 0
push 0
push 0x10000000
push 3
push 0
push 1
push Ordinal_4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x451e8a
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
lea eax, [ebp - 8]
push eax
push 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi], 0x4b415052
jne 0x451fa2
xor dword [esi + 0xc], 0x4652
imul eax, dword [esi + 0xc], 0x88
xor byte [esi + 8], 0x52
push 4
push 0x3000
push eax
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x451fa2
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push 0x3000
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x451f23
push 0x8000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call eax
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jbe 0x451f86
xor eax, eax
nop dword [eax]
imul edi, eax, 0x88
mov eax, dword [ebp + 8]
push dword [edi + eax]
movzx eax, byte [esi + 8]
push ebx
push eax
call fcn.004519e0
mov ecx, dword [esi + 0x10]
mov dword [edi + ecx], eax
mov eax, dword [ebp + 8]
push dword [edi + eax + 4]
movzx eax, byte [esi + 8]
push ebx
push eax
call fcn.00451b50
mov ecx, dword [esi + 0x10]
mov dword [ecx + edi + 4], eax
mov eax, dword [ebp + 8]
add eax, 8
add eax, edi
push eax
mov eax, dword [esi + 0x10]
add eax, 8
add eax, edi
push eax
call fcn.00451cc0
inc ebx
movzx eax, bx
cmp eax, dword [esi + 0xc]
jb 0x451f30
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push dword [ebp + 8]
call eax
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4522d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x10000000
push 3
push 0
push 1
push Ordinal_4
lea eax, [ecx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x452301
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push 4
push 0x3000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x45232b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x452820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
push esi
push dword [ebp + 8]
mov ebx, ecx
call fcn.004523e0
mov ecx, eax
call fcn.004526f0
mov edi, eax
test edi, edi
jne 0x452861
lea edx, [ebp - 4]
mov ecx, esi
call fcn.0044eb80
mov edi, eax
test edi, edi
jne 0x452861
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x2425
cmp word [edi], ax
jne 0x452856
movzx edx, word [edi + 6]
mov esi, dword [edi + 2]
mov word [ebx], dx
xor edx, 0x2222
movzx eax, word [edi + 8]
xor eax, 0x4444
mov dword [ebp + 0xc], esi
movzx ecx, ax
mov word [ebx + 2], ax
movzx eax, dx
push 4
imul ecx, eax
push 0x3000
mov word [ebx], dx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebx + 4], eax
test eax, eax
je 0x452856
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp + 0xc]
lea ecx, [edi + 0xa]
mov esi, eax
push ecx
push esi
mov dword [ebp + 8], esi
call fcn.004803e0
xor ecx, ecx
add esp, 0xc
xor edi, edi
cmp dword [ebp + 0xc], ecx
jbe 0x452916
mov edx, dword [ebp + 0xc]
mov eax, esi
movzx esi, byte [edi + eax + 1]
xor esi, 0xee
jbe 0x45290c
nop
mov edx, dword [ebx + 4]
mov al, byte [edi + eax]
mov byte [ecx + edx], al
mov eax, dword [ebx + 4]
xor byte [eax + ecx], 0xdd
inc ecx
mov eax, dword [ebp + 8]
sub esi, 1
jne 0x4528f0
mov edx, dword [ebp + 0xc]
add edi, 2
cmp edi, edx
jb 0x4528e1
mov esi, dword [ebp + 8]
test esi, esi
je 0x452928
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8