joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov dword [esp + 0x24], edx
xor ebx, ebx
mov edx, ecx
mov ecx, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp edi, 4
jle 0x458992
mov dword [esp + 0x18], 4
jmp 0x45899a
test edi, edi
jle 0x458acb
mov esi, ebx
mov edi, eax
shl esi, 6
mov ebp, ecx
push 4
add esi, edx
pop eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], ebp
cmp ebp, eax
jle 0x4589c2
mov dword [esp + 0x1c], eax
jmp 0x4589ca
test ebp, ebp
jle 0x458aa8
push 0x40
push 0xff
push esi
call fcn.00415710
mov ecx, dword [esp + 0x24]
add esp, 0xc
test ecx, ecx
jle 0x458a46
mov ebp, dword [esp + 0x1c]
mov eax, 0x4bfa64
mov edx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x458a2e
mov esi, eax
mov eax, dword [esi - 4]
lea edx, [ecx + edi]
lea ecx, [eax + ebx*4]
mov eax, dword [esi]
lea esi, [esi + 8]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, ebp
jl 0x458a01
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edi, dword [esp + 0x40]
add eax, 0x20
sub edx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jne 0x4589f5
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, ebx
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [esp + 0x28]
shl edx, 4
mov al, byte [ebx + eax]
mov byte [esp + 0x13], al
lea eax, [ecx + ecx]
and eax, ecx
add eax, edx
push 4
mov eax, dword [edi + eax*4]
shr eax, 0x1f
xor al, 1
shl al, cl
shl al, 2
or al, byte [esp + 0x17]
xor al, byte [esp + 0x17]
and al, 0x3c
xor byte [esp + 0x17], al
inc ecx
mov al, byte [esp + 0x17]
mov byte [ebx + esi], al
pop eax
add edx, eax
cmp ecx, eax
jl 0x458a60
mov edi, dword [esp + 0x30]
sub ebp, eax
mov esi, dword [esp + 0x34]
add edi, eax
inc ebx
add esi, 0x40
jmp 0x4589a8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
sub edi, 4
mov dword [esp + 0x44], edi
lea eax, [eax + ecx*4]
mov dword [esp + 0x3c], eax
jmp 0x45897f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x45c510
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
add ecx, 0x20
push ebp
push esi
push edi
lea eax, [ebx + 1]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea esi, [edx + 5]
mov eax, dword [esp + 0x40]
sub ebx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 8
lea edi, [eax + 1]
mov dword [esp + 0x28], edi
movzx edx, byte [ebx + edi - 1]
movzx eax, byte [edi - 1]
movzx ebp, byte [edi + 3]
add edx, eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esi - 5]
mov ebx, ecx
shr edx, 1
movzx eax, byte [eax + 3]
add ebp, eax
movzx eax, byte [esi - 1]
sub ecx, eax
shr ebp, 1
sub ecx, edx
sub ebx, ebp
add ebp, ecx
sub ebx, edx
mov ecx, dword [esp + 0x10]
add ebx, eax
movzx edx, byte [edi]
mov dword [esp + 0x18], ebp
movzx ebp, byte [edi + 4]
movzx eax, byte [ecx]
add edx, eax
mov dword [esp + 0x30], ebx
movzx eax, byte [ecx + 4]
movzx ecx, byte [esi - 4]
add ebp, eax
movzx eax, byte [esi]
mov ebx, ecx
sub ecx, eax
shr edx, 1
sub ecx, edx
shr ebp, 1
sub ebx, ebp
add ebp, ecx
mov ecx, dword [esp + 0x10]
sub ebx, edx
movzx edx, byte [edi + 1]
add ebx, eax
mov dword [esp + 0x1c], ebp
movzx ebp, byte [edi + 5]
movzx eax, byte [ecx + 1]
add edx, eax
mov dword [esp + 0x34], ebx
movzx eax, byte [ecx + 5]
movzx ecx, byte [esi - 3]
add ebp, eax
movzx eax, byte [esi + 1]
mov ebx, ecx
movzx esi, byte [edi + 2]
sub ecx, eax
movzx edi, byte [edi + 6]
shr edx, 1
sub ecx, edx
shr ebp, 1
sub ebx, ebp
add ebp, ecx
mov ecx, dword [esp + 0x10]
sub ebx, edx
add ebx, eax
movzx eax, byte [ecx + 2]
add esi, eax
movzx eax, byte [ecx + 6]
mov ecx, dword [esp + 0x20]
add edi, eax
shr esi, 1
shr edi, 1
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx - 2]
mov edx, ecx
sub ecx, eax
sub edx, edi
sub ecx, esi
add edi, ecx
sub edx, esi
mov ecx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x24], edi
mov edi, ecx
add ecx, ebx
mov eax, dword [esp + 0x34]
sub edi, ebx
mov esi, eax
add eax, edx
sub esi, edx
mov edx, dword [esp + 0x18]
mov ebx, edx
add edx, ebp
mov dword [esp + 0x18], edx
sub ebx, ebp
mov edx, dword [esp + 0x1c]
mov ebp, edx
add edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
movzx edx, cx
movzx ecx, ax
sub ebp, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x14]
lea eax, [ecx + edx]
add dword [esp + 0x14], 2
sub edx, ecx
movzx ecx, si
mov esi, ebx
mov word [ebx - 0x20], ax
mov eax, ebx
mov ebx, dword [esp + 0x34]
mov word [eax - 0x10], dx
movzx edx, di
mov edi, dword [esp + 0x28]
lea eax, [ecx + edx]
sub edx, ecx
mov word [esi], ax
mov eax, dword [esp + 0x18]
mov word [esi + 0x10], dx
movzx edx, ax
mov eax, dword [esp + 0x1c]
movzx ecx, ax
lea eax, [ecx + edx]
sub edx, ecx
movzx ecx, bx
mov ebx, dword [esp + 0x3c]
mov word [esi + 0x20], ax
mov word [esi + 0x30], dx
lea eax, [ecx + ebp]
sub ecx, ebp
mov word [esi + 0x40], ax
mov eax, dword [esp + 0x44]
add edi, eax
add dword [esp + 0x10], eax
mov word [esi + 0x50], cx
mov esi, dword [esp + 0x20]
add esi, eax
mov dword [esp + 0x28], edi
sub dword [esp + 0x2c], 1
mov dword [esp + 0x20], esi
jne 0x45c549
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x46a7f3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov edx, ebx
push edi
mov edi, ebx
mov eax, dword [esi]
mov byte [eax + 0x16], bl
mov eax, dword [esi]
mov byte [eax + 0x17], bl
mov eax, dword [esi]
mov byte [eax + 0x18], bl
mov eax, dword [esi]
mov byte [eax + 0x19], bl
cmp dword [esi + 4], edx
jle 0x46a836
push ebp
mov ebp, dword [esi]
movzx ecx, byte [edi + ebp]
mov eax, edx
shr eax, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x4ce1e0]
inc edi
cmp edi, dword [esi + 4]
jl 0x46a81a
pop ebp
cmp dword [esi + 0xc], ebx
jle 0x46a859
mov edi, dword [esi + 8]
movzx ecx, byte [edi + ebx]
mov eax, edx
shr eax, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x4ce1e0]
inc ebx
cmp ebx, dword [esi + 0xc]
jl 0x46a83e
mov eax, dword [esi]
mov ecx, edx
shr ecx, 8
pop edi
mov byte [eax + 0x16], dl
mov eax, dword [esi]
mov byte [eax + 0x17], cl
mov ecx, edx
mov eax, dword [esi]
shr ecx, 0x10
shr edx, 0x18
mov byte [eax + 0x18], cl
mov eax, dword [esi]
pop esi
pop ebx
mov byte [eax + 0x19], dl
ret
Function at 0x46bb02
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, 0xcc
cmp dword [edi + 0x14], ebx
je 0x46ba48
mov eax, dword [edi + 0x198]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b25a8]
call esi
and dword [edi + 0x78], 0
pop ecx
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x198]
cmp byte [eax + 8], 0
je 0x46bae7
lea ebx, [edi + 0x78]
mov ecx, dword [ebx]
jmp 0x46baa9
mov eax, dword [edi + 8]
mov ebp, ecx
test eax, eax
je 0x46ba87
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x60]
push edi
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b25a8]
call esi
mov ebp, dword [ebx]
pop ecx
mov esi, dword [edi + 0x19c]
push 0
push ebx
push 0
mov esi, dword [esi + 4]
mov ecx, esi
push edi
call dword [0x4b25a8]
call esi
mov ecx, dword [ebx]
add esp, 0x10
cmp ecx, ebp
je 0x46bafe
cmp ecx, dword [edi + 0x60]
jb 0x46ba5f
mov eax, dword [edi + 0x198]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b25a8]
call esi
mov eax, dword [edi + 0x198]
pop ecx
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b25a8]
call esi
and dword [ebx], 0
mov eax, dword [edi + 0x198]
pop ecx
xor ecx, ecx
cmp byte [eax + 8], cl
jne 0x46baa9
xor eax, eax
cmp byte [edi + 0x41], al
setne al
add eax, 0xcd
mov dword [edi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
xor al, al
jmp 0x46baf9
push esi
push edi
mov edi, ecx
mov esi, 0xcb
mov eax, dword [edi + 0x14]
cmp eax, 0xca
jne 0x46bb31
call fcn.00471110
cmp byte [edi + 0x40], 0
je 0x46bb2c
mov dword [edi + 0x14], 0xcf
mov al, 1
pop edi
pop esi
ret
mov dword [edi + 0x14], esi
mov eax, esi
cmp eax, esi
jne 0x46bbae
mov eax, dword [edi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x46bba3
mov esi, dword [edi + 8]
test esi, esi
je 0x46bb56
mov esi, dword [esi]
mov ecx, esi
push edi
call dword [0x4b25a8]
call esi
pop ecx
mov eax, dword [edi + 0x1a8]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b25a8]
call esi
pop ecx
test eax, eax
je 0x46bb9f
cmp eax, 2
je 0x46bba3
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x46bb41
cmp eax, 3
je 0x46bb84
cmp eax, 1
jne 0x46bb41
inc dword [ecx + 4]
mov edx, dword [edi + 8]
mov esi, dword [edx + 8]
cmp dword [ecx + 4], esi
jl 0x46bb41
mov eax, dword [edi + 0x128]
add eax, esi
mov dword [edx + 8], eax
jmp 0x46bb41
xor al, al
jmp 0x46bb29
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x46bbd6
cmp eax, 0xcc
je 0x46bbd6
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x15
mov ecx, dword [edi]
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b25a8]
call esi
pop ecx
mov ecx, edi
pop edi
pop esi
jmp 0x46ba1d
Function at 0x472830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
mov edx, 0x100
push esi
mov dword [esp + 0x24], ebp
mov ecx, dword [ebp + 0x4c]
cmp ecx, 1
mov ebx, dword [ebp + 0x1c0]
sete al
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [ebp + 0x64]
mov esi, dword [ebp + 4]
cmovne eax, edx
push eax
push 1
push ebp
mov esi, dword [esi + 8]
mov ecx, esi
call dword [0x4b25a8]
call esi
xor esi, esi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], esi
cmp dword [ebp + 0x64], esi
jle 0x472969
push edi
mov edi, dword [ebx + esi*4 + 0x20]
cdq
idiv edi
cmp dword [esp + 0x14], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
jne 0x4728b3
mov eax, dword [ebx + 0x18]
add dword [eax + esi*4], 0xff
mov eax, dword [ebx + 0x18]
lea ebp, [edi*2 - 2]
xor ecx, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ecx
mov ebx, dword [eax + esi*4]
lea eax, [edi + 0xfe]
cdq
idiv ebp
mov esi, dword [esp + 0x20]
xor edi, edi
mov edx, eax
cmp edi, edx
jle 0x472905
imul eax, ecx, 0x1fe
lea ebp, [esi + 0xfe]
add ebp, eax
add ebp, 0x1fe
inc ecx
mov eax, ebp
cdq
idiv dword [esp + 0x24]
mov edx, eax
cmp edi, edx
jg 0x4728ed
mov dword [esp + 0x10], ecx
movzx eax, cl
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
imul ecx, eax
mov byte [edi + ebx], cl
inc edi
mov ecx, dword [esp + 0x10]
cmp edi, 0xff
jle 0x4728db
cmp dword [esp + 0x14], 1
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
jne 0x472952
xor ecx, ecx
lea edx, [ebx - 1]
inc ecx
mov al, byte [ebx]
mov byte [edx], al
mov al, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
dec edx
cmp ecx, 0xff
jle 0x472937
mov ebx, dword [esp + 0x2c]
inc esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp esi, dword [ebp + 0x64]
jl 0x472893
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x48f910
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
test ebp, ebp
jne 0x48f931
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.00490e60
xor al, al
jmp 0x48f9eb
push edi
call fcn.0048f3b0
or dword [esi + 8], 0xffffffff
xor ebx, ebx
or dword [esi + 4], 0xffffffff
push 2
push ebx
push ebp
call fcn.004252b9
push ebp
call fcn.00425c26
push ebx
mov edi, eax
push ebx
push ebp
mov dword [esp + 0x2c], edi
call fcn.004252b9
add esp, 0x1c
test edi, edi
jg 0x48f96c
push ebx
push ebx
push ebx
push 0xc
jmp 0x48f99b
lea eax, [edi + 1]
push eax
call fcn.00413953
push ebp
mov ebp, dword [esp + 0x18]
mov edi, eax
push 1
push ebp
push edi
mov byte [edi], bl
call fcn.0041e91c
add esp, 0x14
cmp eax, 1
je 0x48f9a6
push edi
call fcn.00413923
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, esi
call fcn.00490e60
xor al, al
jmp 0x48f9ea
mov byte [edi + ebp], bl
mov eax, edi
mov dl, byte [edi]
mov ecx, edi
test dl, dl
je 0x48f9d1
inc eax
lea ebp, [ecx + 1]
cmp dl, 0xd
jne 0x48f9c7
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x48f9c9
inc eax
jmp 0x48f9c9
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, ebp
test dl, dl
jne 0x48f9b3
push ebx
push ebx
mov byte [ecx], bl
mov ecx, esi
push edi
call fcn.00490ec0
push edi
call fcn.00413923
cmp byte [esi + 0x2c], bl
pop ecx
sete al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x495b52
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x20
mov eax, dword [0x4e8008]
xor eax, esp
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edx
mov edx, ecx
push ebx
mov al, byte [edx + 8]
mov byte [esp + 7], al
cmp al, 3
je 0x495ce6
push ebp
push esi
mov esi, dword [edx]
xor ebp, ebp
push edi
movzx edi, byte [edx + 9]
test al, 2
mov eax, dword [esp + 0x34]
mov ecx, edi
je 0x495bb9
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, edi
push 3
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, edi
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [esp + 0x28], ecx
pop ecx
jmp 0x495bc6
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [esp + 0x1c], ecx
xor ecx, ecx
inc ecx
test byte [esp + 0x13], 4
mov dword [esp + 0x14], ecx
je 0x495be4
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 4]
sub edi, eax
mov dword [esp + ecx*4 + 0x1c], edi
inc ecx
mov dword [esp + 0x14], ecx
mov eax, ebp
test ecx, ecx
je 0x495ce3
mov ebx, ebp
cmp dword [esp + eax*4 + 0x1c], ebp
jg 0x495bfc
mov dword [esp + eax*4 + 0x1c], ebp
jmp 0x495bff
xor ebx, ebx
inc ebx
inc eax
cmp eax, ecx
jl 0x495bf0
test bx, bx
mov ebx, dword [esp + 0x18]
je 0x495ce3
movzx eax, byte [edx + 9]
dec eax
sub eax, 1
je 0x495cce
dec eax
sub eax, 1
je 0x495c9e
sub eax, 4
je 0x495c7f
sub eax, 8
jne 0x495ce3
imul esi, ecx
mov dword [esp + 0x18], esi
test esi, esi
je 0x495ce3
xor edx, edx
movzx esi, byte [ebx]
mov eax, ebp
div ecx
mov eax, 0x100
imul esi, eax
movzx eax, byte [ebx + 1]
mov cx, word [esp + edx*4 + 0x1c]
add si, ax
shr si, cl
movzx ecx, si
mov eax, ecx
mov byte [ebx + 1], cl
mov ecx, dword [esp + 0x14]
shr eax, 8
inc ebp
mov byte [ebx], al
lea ebx, [ebx + 2]
cmp ebp, dword [esp + 0x18]
jb 0x495c42
jmp 0x495ce3
imul esi, ecx
test esi, esi
je 0x495ce3
xor edx, edx
mov eax, ebp
div ecx
mov cl, byte [esp + edx*4 + 0x1c]
shr byte [ebx], cl
inc ebx
mov ecx, dword [esp + 0x14]
inc ebp
cmp ebp, esi
jb 0x495c86
jmp 0x495ce3
mov esi, dword [edx + 4]
mov edx, 0xf0
mov ecx, dword [esp + 0x1c]
sar edx, cl
push 0xf
pop eax
and dl, 0xf0
sar eax, cl
or dl, al
test esi, esi
je 0x495ce3
mov al, byte [ebx]
mov cl, byte [esp + 0x1c]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x495cba
jmp 0x495ce3
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x495ce3
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
sub ecx, 1
jne 0x495cd5
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
pop ebx
xor ecx, esp
call fcn.00413912
add esp, 0x20
ret
Function at 0x497491
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, ecx
mov ebp, edx
test esi, esi
je 0x497695
cmp dword [esi + 0xe4], 0
jne 0x4974c3
cmp byte [esi + 0x124], 0
jne 0x4974c3
test dword [esi + 0x68], 0x400
je 0x497698
call fcn.0049d5d2
cmp byte [esi + 0x123], 0
push ebx
push edi
je 0x497589
test byte [esi + 0x70], 2
je 0x497589
movzx eax, byte [esi + 0x124]
sub eax, 0
je 0x49757c
sub eax, 1
je 0x497561
sub eax, 1
je 0x497550
sub eax, 1
je 0x49753a
sub eax, 1
je 0x49752e
sub eax, 1
je 0x497518
sub eax, 1
jne 0x497589
test byte [esi + 0xe4], 1
jne 0x497589
jmp 0x49762c
test byte [esi + 0xe4], 1
jne 0x49762c
cmp dword [esi + 0xc8], 2
jmp 0x497575
mov eax, dword [esi + 0xe4]
and al, 3
cmp al, 2
jmp 0x49755a
test byte [esi + 0xe4], 3
jne 0x49762c
cmp dword [esi + 0xc8], 3
jmp 0x497575
mov eax, dword [esi + 0xe4]
and al, 7
cmp al, 4
je 0x497589
jmp 0x49762c
test byte [esi + 0xe4], 7
jne 0x49762c
cmp dword [esi + 0xc8], 5
jae 0x497589
jmp 0x49762c
test byte [esi + 0xe4], 7
jne 0x49762c
mov al, byte [esi + 0x126]
lea ebx, [esi + 0x100]
mov cl, byte [esi + 0x128]
mov edx, dword [esi + 0xd4]
mov byte [esi + 0x108], al
mov al, byte [esi + 0x12b]
mov byte [esi + 0x109], cl
mov byte [esi + 0x10a], al
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov dword [ebx], edx
mov byte [esi + 0x10b], cl
movzx edi, cl
cmp cl, 8
jb 0x4975da
shr edi, 3
imul edi, edx
jmp 0x4975e3
imul edi, edx
add edi, 7
shr edi, 3
mov eax, dword [esi + 0xec]
push edi
inc eax
mov dword [esi + 0x104], edi
push ebp
push eax
call fcn.004171b0
add esp, 0xc
cmp byte [esi + 0x123], 0
je 0x497637
mov al, byte [esi + 0x124]
cmp al, 6
jae 0x497637
test byte [esi + 0x70], 2
je 0x497637
mov edx, dword [esi + 0xec]
mov ecx, ebx
movzx eax, al
inc edx
push eax
call fcn.0049d703
cmp dword [ebx], 0
pop ecx
jne 0x497637
pop edi
pop ebx
mov ecx, esi
pop esi
pop ebp
jmp fcn.0049cdd8
cmp dword [esi + 0x70], 0
je 0x497644
mov ecx, esi
call fcn.0049f3a7
test byte [esi + 0x218], 4
je 0x497664
cmp byte [esi + 0x220], 0x40
jne 0x497664
mov edx, dword [esi + 0xec]
mov ecx, ebx
inc edx
call fcn.0049f2f7
mov edx, ebx
mov ecx, esi
call fcn.0049da9a
mov edi, dword [esi + 0x19c]
test edi, edi
je 0x497693
movzx eax, byte [esi + 0x124]
mov ecx, edi
push eax
push dword [esi + 0xe4]
push esi
call dword [0x4b25a8]
call edi
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
ret
mov edx, str.png_write_info_was_never_called_before_png_write_row.
call fcn.00499490
int3
Function at 0x49c037
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
mov eax, dword [0x4e8008]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test byte [esi + 0x68], 1
je 0x49c135
test byte [esi + 0x68], 4
je 0x49c07e
mov edx, str.Invalid_hIST_after_IDAT
call fcn.0049944d
mov edx, dword [esp + 0x214]
mov ecx, esi
call fcn.0049be8e
jmp 0x49c11e
test byte [esi + 0x68], 2
jne 0x49c08b
mov edx, str.Missing_PLTE_before_hIST
jmp 0x49c066
test ebx, ebx
je 0x49c09c
test byte [ebx + 8], 0x40
je 0x49c09c
mov edx, str.Duplicate_hIST_chunk
jmp 0x49c066
push edi
mov edi, dword [esp + 0x218]
cmp edi, 0x200
ja 0x49c10a
movzx eax, word [esi + 0x118]
add eax, eax
cmp edi, eax
jne 0x49c10a
shr edi, 1
push ebp
push 0
pop ebp
je 0x49c0eb
push 2
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00499e7b
mov ax, word [esp + 0x14]
pop ecx
movzx ecx, al
shl cx, 8
movzx eax, ah
xor cx, ax
mov word [esp + ebp*2 + 0x14], cx
inc ebp
cmp ebp, edi
jb 0x49c0c1
xor edx, edx
mov ecx, esi
call fcn.0049be8e
pop ebp
test eax, eax
jne 0x49c11d
lea eax, [esp + 0x10]
mov edx, ebx
push eax
mov ecx, esi
call fcn.00498a63
pop ecx
jmp 0x49c11d
mov edx, str.Incorrect_hIST_chunk_length
call fcn.0049944d
mov edx, edi
mov ecx, esi
call fcn.0049be8e
pop edi
mov ecx, dword [esp + 0x20c]
pop esi
pop ebx
xor ecx, esp
call fcn.00413912
add esp, 0x208
ret
mov edx, str.Missing_IHDR_before_hIST
call fcn.00499490
int3
Function at 0x49cdd8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, dword [0x4e8008]
xor eax, esp
mov dword [esp + 0x74], eax
movaps xmm0, xmmword [0x4d7420]
push ebx
push ebp
push edi
movups xmmword [esp + 0x48], xmm0
mov ebx, ecx
xor ebp, ebp
movaps xmm0, xmmword [0x4d7440]
xor edi, edi
inc edi
mov dword [esp + 0x58], ebp
movups xmmword [esp + 0x10], xmm0
inc dword [ebx + 0xe4]
movaps xmm0, xmmword [0x4d7410]
push 2
pop eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
movups xmmword [esp + 0x64], xmm0
mov dword [esp + 0x74], eax
movaps xmm0, xmmword [0x4d7450]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x3c], 4
cmp eax, dword [ebx + 0xd0]
jb 0x49cfdc
cmp byte [ebx + 0x123], 0
push esi
je 0x49cf50
test byte [ebx + 0x70], 2
mov al, byte [ebx + 0x124]
mov dword [ebx + 0xe4], ebp
je 0x49ce99
inc al
mov byte [ebx + 0x124], al
jmp 0x49cefe
mov cl, al
lea eax, [ecx + 1]
mov byte [esp + 0x13], al
mov byte [ebx + 0x124], al
cmp al, 7
jae 0x49cefb
movzx esi, al
xor edx, edx
mov eax, dword [ebx + 0xc8]
dec eax
mov ecx, dword [esp + esi*4 + 0x14]
sub ecx, dword [esp + esi*4 + 0x4c]
add eax, ecx
div dword [esp + esi*4 + 0x14]
mov edx, dword [esp + esi*4 + 0x30]
sub edx, dword [esp + esi*4 + 0x68]
mov edi, eax
mov eax, dword [ebx + 0xcc]
dec eax
mov dword [ebx + 0xd4], edi
add eax, edx
xor edx, edx
div dword [esp + esi*4 + 0x30]
mov edx, eax
mov al, byte [esp + 0x13]
mov dword [ebx + 0xd0], edx
mov cl, al
test edi, edi
je 0x49ce9b
test edx, edx
je 0x49ce9b
xor edi, edi
inc edi
cmp al, 7
jae 0x49cf50
mov edx, dword [ebx + 0xe8]
test edx, edx
je 0x49cfdb
movzx eax, byte [ebx + 0x128]
movzx ecx, byte [ebx + 0x12b]
imul ecx, eax
mov eax, dword [ebx + 0xc8]
cmp ecx, 8
jb 0x49cf34
shr ecx, 3
imul ecx, eax
jmp 0x49cf3d
imul ecx, eax
add ecx, 7
shr ecx, 3
lea eax, [ecx + 1]
push eax
push ebp
push edx
call fcn.00415710
add esp, 0xc
jmp 0x49cfdb
push 4
pop edx
lea ecx, [ebx + 0x74]
call fcn.004a50a0
test eax, eax
jne 0x49cf95
cmp dword [ebx + 0x84], ebp
jne 0x49cf50
push dword [ebx + 0xb0]
mov edx, dword [ebx + 0xac]
mov ecx, ebx
call fcn.0049cff7
mov eax, dword [ebx + 0xac]
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0xb0]
pop ecx
mov dword [ebx + 0x84], eax
jmp 0x49cf50
cmp eax, edi
je 0x49cfac
mov edx, dword [ebx + 0x8c]
mov ecx, ebx
test edx, edx
jne 0x49cff1
mov edx, str.zlib_error
jmp 0x49cff1
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0xb0]
cmp edx, eax
jae 0x49cfcd
sub eax, edx
mov ecx, ebx
mov edx, dword [ebx + 0xac]
push eax
call fcn.0049cff7
pop ecx
lea ecx, [ebx + 0x74]
call fcn.004a4fc0
mov dword [ebx + 0xa0], ebp
pop esi
mov ecx, dword [esp + 0x80]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413912
add esp, 0x78
ret
call fcn.00499490
int3
Function at 0x49d972
Capabilities:
Terminate process

Disassembly:
sub esp, 0x28
mov eax, dword [0x4e8008]
xor eax, esp
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], 0x50434369
push esi
push edi
mov byte [esp + 0x28], al
mov edi, eax
mov dword [esp + 0x18], eax
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call fcn.00497fa8
mov dword [esp + 0x10], eax
pop ecx
test eax, eax
je 0x49da89
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x40]
test ebp, ebp
cmovne ebx, dword [esp + 0x44]
cmp ebx, 3
jle 0x49da06
movzx edi, byte [ebp]
movzx eax, byte [ebp + 1]
shl edi, 8
or edi, eax
movzx eax, byte [ebp + 2]
shl edi, 8
or edi, eax
movzx eax, byte [ebp + 3]
shl edi, 8
or edi, eax
jge 0x49da06
mov edx, str.Embedded_profile_length_in_iCCP_chunk_is_negative
mov ecx, esi
call fcn.0049944d
mov edx, dword [esp + 0x10]
jmp 0x49da80
cmp ebx, edi
jge 0x49da11
mov edx, str.Embedded_profile_length_too_large_in_iCCP_chunk
jmp 0x49d9f9
jle 0x49da21
mov edx, str.Truncating_profile_to_actual_length_in_iCCP_chunk
pop esp
add dword [eax], eax
add byte [ebx], bh
inc esi
add al, 0x74
or dword [ebx], edi
inc esi
or byte [edi], cl
test dword [ebx - 0x39000000], ebp
add al, 0x24
add byte [eax], al
add byte [eax], al